use of org.n52.shetland.ogc.sensorML.Role in project arctic-sea by 52North.
the class OwsServiceProviderFactory method create.
@Override
protected OwsServiceProvider create(Locale language) throws ConfigurationError {
// TODO organisation name is missing
String organisationName = null;
OwsOnlineResource onlineResource = null;
if (site != null) {
onlineResource = new OwsOnlineResource(site);
}
OwsCode roleCode = null;
if (role != null) {
roleCode = new OwsCode(role, roleCodespace);
}
OwsOnlineResource providerSite = null;
if (onlineResoureHref != null) {
providerSite = new OwsOnlineResource(onlineResoureHref, onlineResoureTitle);
}
OwsAddress address = null;
if (anyNonNull(deliveryPoint, city, administrativeArea, postalCode, country, electronicMailAddress)) {
address = new OwsAddress(deliveryPoint, city, administrativeArea, postalCode, country, electronicMailAddress);
}
OwsPhone owsPhone = null;
if (anyNonNull(phone, facsimile)) {
owsPhone = new OwsPhone(phone, facsimile);
}
OwsContact contactInfo = null;
if (anyNonNull(owsPhone, address, onlineResource, hoursOfService, contactInstructions)) {
contactInfo = new OwsContact(owsPhone, address, onlineResource, hoursOfService, contactInstructions);
}
OwsResponsibleParty serviceContact = new OwsResponsibleParty(individualName, organisationName, positionName, contactInfo, roleCode);
return new OwsServiceProvider(name, providerSite, serviceContact);
}
use of org.n52.shetland.ogc.sensorML.Role in project arctic-sea by 52North.
the class AbstractCapabilitiesBaseTypeDecoder method parseRequestMethod.
private OwsRequestMethod parseRequestMethod(String httpMethod, RequestMethodType method) {
if (method == null) {
return null;
}
URI href = Optional.ofNullable(method.getHref()).map(Strings::emptyToNull).map(URI::create).orElse(null);
URI role = Optional.ofNullable(method.getRole()).map(Strings::emptyToNull).map(URI::create).orElse(null);
URI arcrole = Optional.ofNullable(method.getArcrole()).map(Strings::emptyToNull).map(URI::create).orElse(null);
Show show = Optional.ofNullable(method.getShow()).map(Object::toString).map(Show::valueOf).orElse(null);
Actuate actuate = Optional.ofNullable(method.getActuate()).map(Object::toString).map(Actuate::valueOf).orElse(null);
String title = method.getTitle();
List<OwsDomain> constraints = parseDomains(method.getConstraintArray());
return new OwsRequestMethod(href, constraints, httpMethod, role, arcrole, title, show, actuate);
}
use of org.n52.shetland.ogc.sensorML.Role in project arctic-sea by 52North.
the class Iso19139GcoDecoder method encodeCodeListValue.
private Role encodeCodeListValue(CodeListValueType circ) {
Role role = new Role(circ.getStringValue());
role.setCodeList(circ.getCodeList());
role.setCodeListValue(circ.getCodeListValue());
return role;
}
Aggregations