Search in sources :

Example 1 with IdentifierListType

use of net.opengis.sensorml.x20.IdentifierListType in project arctic-sea by 52North.

the class SensorMLEncoderv20 method createIdentification.

/**
 * Creates the valueentification section of the SensorML description.
 *
 * @param identifications
 *            SOS valueentifications
 *
 * @return XML Identification array
 */
protected IdentifierListPropertyType[] createIdentification(final List<SmlIdentifier> identifications) {
    final IdentifierListPropertyType xbIdentification = IdentifierListPropertyType.Factory.newInstance(getXmlOptions());
    final IdentifierListType xbIdentifierList = xbIdentification.addNewIdentifierList();
    identifications.forEach(sosSMLIdentifier -> createTerm(xbIdentifierList.addNewIdentifier2().addNewTerm(), sosSMLIdentifier));
    return new IdentifierListPropertyType[] { xbIdentification };
}
Also used : IdentifierListType(net.opengis.sensorml.x20.IdentifierListType) IdentifierListPropertyType(net.opengis.sensorml.x20.IdentifierListPropertyType)

Aggregations

IdentifierListPropertyType (net.opengis.sensorml.x20.IdentifierListPropertyType)1 IdentifierListType (net.opengis.sensorml.x20.IdentifierListType)1