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