Search in sources :

Example 1 with CIOnlineResourceDocument

use of org.isotc211.x2005.gmd.CIOnlineResourceDocument in project arctic-sea by 52North.

the class Iso19139GmdEncoder method encodeCiOnlineResource.

private XmlObject encodeCiOnlineResource(CiOnlineResource element, EncodingContext context) {
    CIOnlineResourceType ciort = CIOnlineResourceType.Factory.newInstance(getXmlOptions());
    encodeOnlineResource(ciort, element);
    if (context.has(XmlBeansEncodingFlags.PROPERTY_TYPE)) {
        CIOnlineResourcePropertyType ciorpt = CIOnlineResourcePropertyType.Factory.newInstance(getXmlOptions());
        ciorpt.setCIOnlineResource(ciort);
        return ciorpt;
    } else if (context.has(XmlBeansEncodingFlags.DOCUMENT)) {
        CIOnlineResourceDocument ciord = CIOnlineResourceDocument.Factory.newInstance(getXmlOptions());
        ciord.setCIOnlineResource(ciort);
        return ciord;
    }
    return ciort;
}
Also used : CIOnlineResourceType(org.isotc211.x2005.gmd.CIOnlineResourceType) CIOnlineResourceDocument(org.isotc211.x2005.gmd.CIOnlineResourceDocument) CIOnlineResourcePropertyType(org.isotc211.x2005.gmd.CIOnlineResourcePropertyType)

Aggregations

CIOnlineResourceDocument (org.isotc211.x2005.gmd.CIOnlineResourceDocument)1 CIOnlineResourcePropertyType (org.isotc211.x2005.gmd.CIOnlineResourcePropertyType)1 CIOnlineResourceType (org.isotc211.x2005.gmd.CIOnlineResourceType)1