use of net.opengis.gml.CodeType in project arctic-sea by 52North.
the class GmlEncoderv311 method createCodeType.
private XmlObject createCodeType(org.n52.shetland.ogc.gml.CodeType sosCodeType) {
CodeType codeType = CodeType.Factory.newInstance(getXmlOptions());
if (sosCodeType.isSetCodeSpace()) {
codeType.setCodeSpace(sosCodeType.getCodeSpace().toString());
}
codeType.setStringValue(sosCodeType.getValue());
return codeType;
}
use of net.opengis.gml.CodeType in project arctic-sea by 52North.
the class GmlEncoderv311 method createCodeWithAuthorityType.
private XmlObject createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority) {
if (sosCodeWithAuthority.isSetValue()) {
CodeType codeType = CodeType.Factory.newInstance(getXmlOptions());
String value = sosCodeWithAuthority.getValue();
codeType.setStringValue(value);
codeType.setCodeSpace(sosCodeWithAuthority.getCodeSpace());
return codeType;
}
return null;
}
Aggregations