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;
}
Aggregations