use of net.opengis.sensorml.x20.ConnectionListType.Connection in project arctic-sea by 52North.
the class SensorMLDecoderV20 method parseConnections.
private SmlConnection parseConnections(ConnectionListPropertyType connections) throws DecodingException {
SmlConnection sosSmlConnection = new SmlConnection();
if (connections.isSetConnectionList() && connections.getConnectionList().getConnectionArray() != null) {
for (final Connection connection : connections.getConnectionList().getConnectionArray()) {
if (connection.getLink() != null) {
LinkType link = connection.getLink();
sosSmlConnection.addConnection(new SmlLink(link.getDestination().getRef(), link.getSource().getRef()));
}
}
}
return sosSmlConnection;
}
Aggregations