private void addMetadata(InsertSensorRequest request, InsertSensorType insertSensor) throws EncodingException { XmlObject encodedMetadata = encodeObjectToXmlPropertyType(Sos2Constants.NS_SOS_20, request.getMetadata()); insertSensor.addNewMetadata().addNewInsertionMetadata().set(encodedMetadata); }
SosInsertionMetadataType xbSosInsertionMetadata = null; if (metadata.getInsertionMetadata() != null && metadata.getInsertionMetadata().schemaType() == SosInsertionMetadataType.type) { xbSosInsertionMetadata = (SosInsertionMetadataType) metadata.getInsertionMetadata(); } else {
/** * Sets the "InsertionMetadata" element */ public void setInsertionMetadata(net.opengis.swes.x20.InsertionMetadataType insertionMetadata) { synchronized (monitor()) { check_orphaned(); net.opengis.swes.x20.InsertionMetadataType target = null; target = (net.opengis.swes.x20.InsertionMetadataType)get_store().find_element_user(INSERTIONMETADATA$0, 0); if (target == null) { target = (net.opengis.swes.x20.InsertionMetadataType)get_store().add_element_user(INSERTIONMETADATA$0); } target.set(insertionMetadata); } }
/** * Sets the "InsertionMetadata" element */ public void setInsertionMetadata(net.opengis.swes.x20.InsertionMetadataType insertionMetadata) { synchronized (monitor()) { check_orphaned(); net.opengis.swes.x20.InsertionMetadataType target = null; target = (net.opengis.swes.x20.InsertionMetadataType)get_store().find_element_user(INSERTIONMETADATA$0, 0); if (target == null) { target = (net.opengis.swes.x20.InsertionMetadataType)get_store().add_element_user(INSERTIONMETADATA$0); } target.set(insertionMetadata); } }
/** * Sets the "InsertionMetadata" element */ public void setInsertionMetadata(net.opengis.swes.x20.InsertionMetadataType insertionMetadata) { synchronized (monitor()) { check_orphaned(); net.opengis.swes.x20.InsertionMetadataType target = null; target = (net.opengis.swes.x20.InsertionMetadataType)get_store().find_element_user(INSERTIONMETADATA$0, 0); if (target == null) { target = (net.opengis.swes.x20.InsertionMetadataType)get_store().add_element_user(INSERTIONMETADATA$0); } target.set(insertionMetadata); } }