/** * @return a XML representation of this ServiceDescriptor. */ public String toXML() { String res = "<ServiceDescriptor version=\"" + version + "\" updateSequence=\"" + updateSequence + "\">"; res += contents.toXML(); res += operationsMetadata.toXML(); res += serviceIdentification.toXML(); res += serviceProvider.toXML(); res += "</ServiceDescriptor>"; return res; }
/** * @return a XML representation of this ServiceProvider-section. */ public String toXML(){ String res = "<ServiceProvider providerName=\"" + providerName + "\">"; if(serviceContact != null) res += serviceContact.toXML(); if(providerSite != null) res += providerSite.toXML(); res += "</ServiceProvider>"; return res; }
/** * convenience constructor. Creates an Operation with the specified name and sets one DCP with the * specified httpGetHref and httpPostHref. The constraints and parameters attributes will stay * <code>null</code>. * * @param name name of the operation * @param httpGetHref the URL to be used for HTTP GET * @param httpPostHref the URL to be used for HTTP POST */ public Operation(final String name, final String httpGetHref, final String httpPostHref) { setName(name); final DCP[] dcp = new DCP[1]; dcp[0] = new DCP(new GetRequestMethod(new OnlineResource(httpGetHref)), new PostRequestMethod(new OnlineResource(httpPostHref))); setDcps(dcp); }
private OnlineResource getFirstDcpOnlineResourceForGET(Operation operation) { return operation.getDcps()[0].getHTTPGetRequestMethods().get(0).getOnlineResource(); }
public OnlineResource(String type, String href, String role, String arcrole, String show, String actuate, String title){ setType(type); setHref(href); setRole(role); setArcrole(arcrole); setShow(show); setActuate(actuate); setTitle(title); }
public Address(String city, String administrativeArea, String postalCode, String country, String[] deliveryPoint, String[] electronicMailAddress) { setCity(city); setAdministrativeArea(administrativeArea); setPostalCode(postalCode); setCountry(country); setDeliveryPoints(deliveryPoint); setElectronicMailAddresses(electronicMailAddress); }
public Operation(final String name, final Parameter[] parameters, final String[] constraints, final DCP[] dcps) { setName(name); setParameters(parameters); setConstraints(constraints); setDcps(dcps); }
/** * @return a XML representation of this Parameter. */ public String toXML() { String res = "<DatasetParameter dataID=\""+ dataID.getIdentifier() + "\" serviceSidedName=\"" + serviceSidedName + "\" required=\"" + required + "\" commonName=\"" + this.getCommonName() + "\">"; res += "<ValueDomain>"; if (valueDomain != null) { res += valueDomain.toXML(); } res += "</ValueDomain>"; res += "</DatasetParameter>"; return res; } }
/** * */ @Override public ObservationOffering getDataIdentification(final int i) { return (ObservationOffering) super.getDataIdentification(i); }
public OperationsMetadata(final Operation[] operations, final Parameter[] parameters, final String[] constraints) { setOperations(operations); setParameters(parameters); setConstraints(constraints); }
public ServiceProvider(String providerName, ServiceContact serviceContact, OnlineResource providerSite) { setProviderName(providerName); setServiceContact(serviceContact); setProviderSite(providerSite); }
/** * this constructor has all required attributes as its parameters. The other attributes will be set on * default values. * * @param title the title to set * @param abstractDescription the abstract description to set * @param keywords the keywords array to set */ public Description(String title, String abstractDescription, String[] keywords) { setTitle(title); setAbstractDescription(abstractDescription); setKeywords(keywords); }
/** * @param onlineResource the <b>required</b> online resource * @param constraints the <b>optional</b> constraints that are relevant for this request method. */ public RequestMethod(final OnlineResource onlineResource, final Set<Constraint> constraints) { setOnlineResource(onlineResource); setOwsConstraints(constraints); }
public SOSContents(final List<ObservationOffering> observationOfferingList) { super(); for (final ObservationOffering offering : observationOfferingList) { super.addDataIdentication(offering); } }
@Override public String toString() { String res = "[Parameter: '" + serviceSidedName + "'/'" + commonName + "'"; res += " ValueDomain: "; if (valueDomain != null) { res += valueDomain.toXML(); } res += "]"; return res; }
/** * this constructor has all required attributes as its parameters. * @param onlineResource the <b>required</b> online resource */ public RequestMethod(final OnlineResource onlineResource){ setOnlineResource(onlineResource); }
/** * this constructor has all required attributes as its parameters. The other attributes will be set on * default values. * * @param title the title to set */ public Description(String title) { setTitle(title); abstractDescription = ""; keywords = new String[] {""}; }
/** * @return a XML representation of this ServiceContact. */ public String toXML(){ String res = "<ServiceContact" + " individualName=\"" + individualName + "\"" + " organisationName=\""+ organisationName + "\"" + " positionName=\"" + positionName + "\">"; if(contactInfo != null) res += contactInfo.toXML(); res += "</ServiceContact>"; return res; }
/** * * @param identifier * @return the <code>ObservationOffering</code> with the specified identifier/name or <code>null</code> if * there is no dataset with the specified identifier/name. */ @Override public ObservationOffering getDataIdentification(final String identifier) { return (ObservationOffering) super.getDataIdentification(identifier); }