use of net.opengis.sensorML.x101.ConnectionsDocument.Connections.ConnectionList in project arctic-sea by 52North.
the class SensorMLEncoderv101 method createConnections.
private Connections createConnections(SmlConnection connections) {
Connections c = Connections.Factory.newInstance();
ConnectionList cl = c.addNewConnectionList();
for (SmlLink link : connections.getConnections()) {
Link l = cl.addNewConnection().addNewLink();
l.addNewDestination().setRef(link.getDestination());
l.addNewSource().setRef(link.getSource());
}
return c;
}
Aggregations