use of org.isotc211.x2005.gmd.DQDomainConsistencyDocument in project arctic-sea by 52North.
the class Iso19139GmdEncoder method encodeGmdDomainConsistency.
private XmlObject encodeGmdDomainConsistency(GmdDomainConsistency element, EncodingContext additionalValues) throws EncodingException {
if (additionalValues.has(XmlBeansEncodingFlags.DOCUMENT)) {
DQDomainConsistencyDocument document = DQDomainConsistencyDocument.Factory.newInstance(getXmlOptions());
DQResultPropertyType addNewResult = document.addNewDQDomainConsistency().addNewResult();
encodeGmdDomainConsistency(addNewResult, element);
return document;
} else if (additionalValues.has(XmlBeansEncodingFlags.PROPERTY_TYPE)) {
DQDomainConsistencyPropertyType propertyType = DQDomainConsistencyPropertyType.Factory.newInstance(getXmlOptions());
DQResultPropertyType addNewResult = propertyType.addNewDQDomainConsistency().addNewResult();
encodeGmdDomainConsistency(addNewResult, element);
return propertyType;
} else {
DQDomainConsistencyType type = DQDomainConsistencyType.Factory.newInstance(getXmlOptions());
DQResultPropertyType addNewResult = type.addNewResult();
encodeGmdDomainConsistency(addNewResult, element);
return type;
}
}
Aggregations