use of org.n52.svalbard.decode.exception.DecodingException in project arctic-sea by 52North.
the class ProcessDocumentDecoder method decode.
@Override
public Process decode(ProcessDocument pd) throws DecodingException {
Process process = parseProcessType(pd.getProcess());
process.setXml(pd.xmlText(getXmlOptions()));
return process;
}
use of org.n52.svalbard.decode.exception.DecodingException in project arctic-sea by 52North.
the class ProcessTypeDecoder method decode.
@Override
public Process decode(ProcessType pt) throws DecodingException {
Process process = parseProcessType(pt);
process.setXml(pt.xmlText(getXmlOptions()));
return process;
}
use of org.n52.svalbard.decode.exception.DecodingException in project arctic-sea by 52North.
the class RelatedOfferingTypeDecoder method parseRelatedOffering.
private OfferingContext parseRelatedOffering(RelatedOffering relatedOffering) throws DecodingException {
ReferenceType role = decodeXmlElement(relatedOffering.getOfferingContext().getRole());
ReferenceType relOff = decodeXmlElement(relatedOffering.getOfferingContext().getRelatedOffering());
return new OfferingContext(role, relOff);
}
use of org.n52.svalbard.decode.exception.DecodingException in project arctic-sea by 52North.
the class RelatedOfferingTypeDecoder method decode.
@Override
public RelatedOfferings decode(RelatedOfferingsPropertyType rot) throws DecodingException {
RelatedOfferings relatedOfferings = new RelatedOfferings();
relatedOfferings.setNamespace(RelatedOfferingConstants.NS_RO).setDefinition(RelatedOfferingConstants.RELATED_OFFERINGS).setIdentifier(RelatedOfferingConstants.RELATED_OFFERINGS);
for (RelatedOffering relatedOffering : rot.getRelatedOfferings().getRelatedOfferingArray()) {
relatedOfferings.getValue().add(parseRelatedOffering(relatedOffering));
}
return relatedOfferings;
}
use of org.n52.svalbard.decode.exception.DecodingException in project arctic-sea by 52North.
the class RelatedPartyTypeDecoder method parseContact.
private Contact parseContact(RelatedPartyType rpt) throws DecodingException {
ContactType ct = rpt.getContact().getContact();
Contact contact = new Contact();
contact.setAddress(parseAddress(ct));
contact.setContactInstructions(parseContactInstructions(ct));
contact.setElectronicMailAddress(parseElectronicMailAddress(ct));
contact.setTelephoneFacsimile(parseTelephoneFacsimile(ct));
contact.setTelephoneVoice(parseTelephoneVoice(ct));
contact.setWebsite(parseWebsite(ct));
return contact;
}
Aggregations