Search in sources :

Example 1 with Inputs

use of net.opengis.sensorML.x101.InputsDocument.Inputs in project arctic-sea by 52North.

the class SensorMLEncoderv101 method createInputs.

/**
 * Creates the inputs section of the SensorML description.
 *
 * @param inputs
 *            SOS SWE representation.
 *
 * @return XML Inputs element
 *
 * @throws EncodingException
 *             if an error occurs
 */
private Inputs createInputs(List<SmlIo> inputs) throws EncodingException {
    Inputs xbInputs = Inputs.Factory.newInstance(getXmlOptions());
    InputList xbInputList = xbInputs.addNewInputList();
    int counter = 1;
    for (SmlIo sosSMLIo : inputs) {
        if (!sosSMLIo.isSetName()) {
            sosSMLIo.setIoName("input_" + counter++);
        }
        addIoComponentPropertyType(xbInputList.addNewInput(), sosSMLIo);
    }
    return xbInputs;
}
Also used : InputList(net.opengis.sensorML.x101.InputsDocument.Inputs.InputList) SmlIo(org.n52.shetland.ogc.sensorML.elements.SmlIo) Inputs(net.opengis.sensorML.x101.InputsDocument.Inputs)

Aggregations

Inputs (net.opengis.sensorML.x101.InputsDocument.Inputs)1 InputList (net.opengis.sensorML.x101.InputsDocument.Inputs.InputList)1 SmlIo (org.n52.shetland.ogc.sensorML.elements.SmlIo)1