Search in sources :

Example 1 with DQDomainConsistencyType

use of org.isotc211.x2005.gmd.DQDomainConsistencyType 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;
    }
}
Also used : DQDomainConsistencyType(org.isotc211.x2005.gmd.DQDomainConsistencyType) DQDomainConsistencyDocument(org.isotc211.x2005.gmd.DQDomainConsistencyDocument) DQDomainConsistencyPropertyType(org.isotc211.x2005.gmd.DQDomainConsistencyPropertyType) DQResultPropertyType(org.isotc211.x2005.gmd.DQResultPropertyType)

Aggregations

DQDomainConsistencyDocument (org.isotc211.x2005.gmd.DQDomainConsistencyDocument)1 DQDomainConsistencyPropertyType (org.isotc211.x2005.gmd.DQDomainConsistencyPropertyType)1 DQDomainConsistencyType (org.isotc211.x2005.gmd.DQDomainConsistencyType)1 DQResultPropertyType (org.isotc211.x2005.gmd.DQResultPropertyType)1