Search in sources :

Example 1 with DocumentList

use of net.opengis.sensorML.x101.DocumentListDocument.DocumentList in project arctic-sea by 52North.

the class SensorMLEncoderv101 method createDocumentationList.

/**
 * Create a XML DocuemntList from SOS documentList
 *
 * @param sosDocumentationList
 *            SOS documentList
 *
 * @return XML DocumentList element
 */
private DocumentList createDocumentationList(final SmlDocumentationList sosDocumentationList) {
    final DocumentList documentList = DocumentList.Factory.newInstance();
    if (sosDocumentationList.isSetDescription()) {
        documentList.addNewDescription().setStringValue(sosDocumentationList.getDescription());
    }
    if (sosDocumentationList.isSetMembers()) {
        sosDocumentationList.getMember().forEach(sosMember -> {
            net.opengis.sensorML.x101.DocumentListDocument.DocumentList.Member member = documentList.addNewMember();
            member.setName(sosMember.getName());
            member.setDocument(createDocument(sosMember.getDocumentation()));
        });
    }
    return documentList;
}
Also used : DocumentList(net.opengis.sensorML.x101.DocumentListDocument.DocumentList)

Aggregations

DocumentList (net.opengis.sensorML.x101.DocumentListDocument.DocumentList)1