Search in sources :

Example 56 with CodeType

use of net.opengis.gml.x32.CodeType in project arctic-sea by 52North.

the class GmlEncoderv321 method createCodeType.

private CodeType createCodeType(org.n52.shetland.ogc.gml.CodeType sosCodeType) throws EncodingException {
    if (!sosCodeType.isSetValue()) {
        throw missingValueParameter(CodeType.class.getName());
    }
    CodeType codeType = CodeType.Factory.newInstance(getXmlOptions());
    codeType.setStringValue(sosCodeType.getValue());
    codeType.setCodeSpace(Optional.ofNullable(sosCodeType.getCodeSpace()).map(URI::toString).filter(Predicates.not(String::isEmpty)).orElse(OGCConstants.UNKNOWN));
    return codeType;
}
Also used : CodeType(net.opengis.gml.x32.CodeType)

Aggregations

CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)45 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)14 TextType (un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)10 DateTimeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType)9 ArrayList (java.util.ArrayList)6 QuantityType (un.unece.uncefact.data.standard.unqualifieddatatype._20.QuantityType)6 HashSet (java.util.HashSet)5 FLUXLocation (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXLocation)5 FLUXParty (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXParty)5 MeasureType (un.unece.uncefact.data.standard.unqualifieddatatype._20.MeasureType)5 CodeType (net.opengis.ows11.CodeType)4 DataInputsType (net.opengis.wps10.DataInputsType)4 InputDescriptionType (net.opengis.wps10.InputDescriptionType)4 ProcessDescriptionType (net.opengis.wps10.ProcessDescriptionType)4 Test (org.junit.Test)4 FLUXCharacteristic (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXCharacteristic)4 CustomProcessFunction (com.sldeditor.rendertransformation.CustomProcessFunction)3 ProcessFunctionParameterValue (com.sldeditor.rendertransformation.ProcessFunctionParameterValue)3 LiteralInputType (net.opengis.wps10.LiteralInputType)3 EList (org.eclipse.emf.common.util.EList)3