/** * Check if the namespace is set * * @return <code>true</code>, if the namespace is set */ public boolean isSetNamespace() { return !Strings.isNullOrEmpty(getNamespace()); }
/** * Check if the metadata URL is set * * @return <code>true</code>, if the metadata URL is set */ public boolean isSetMetadataUrl() { return !Strings.isNullOrEmpty(getMetadataUrl()); }
/** * Write {@link InspireUniqueResourceIdentifier} to stream * * @param uniqueResourceIdentifier * {@link InspireUniqueResourceIdentifier} to write to stream * @throws XMLStreamException * If an error occurs when writing the object to stream */ private void writeUniqueResourceIdentifierContent(InspireUniqueResourceIdentifier uniqueResourceIdentifier) throws XMLStreamException { // TODO Check if metadataURL and/or Code/Namespace (attr(name, value);) writeCode(uniqueResourceIdentifier.getCode()); if (uniqueResourceIdentifier.isSetNamespace()) { writeNamespace(uniqueResourceIdentifier.getNamespace()); } }
/** * Get the spatial dataset identifiers * * @param version * the service version * @return the spatial dataset identifiers */ private Set<InspireUniqueResourceIdentifier> getSpatialDataSetIdentifier(String version) { Set<InspireUniqueResourceIdentifier> spatialDataSetIdentifier = Sets.newHashSet(); for (String offering : getCache().getOfferings()) { InspireUniqueResourceIdentifier iuri = new InspireUniqueResourceIdentifier(offering); if (getInspireHelper().isSetNamespace()) { iuri.setNamespace(getInspireHelper().getNamespace()); } else { iuri.setNamespace(ServiceConfiguration.getInstance().getServiceURL()); } spatialDataSetIdentifier.add(iuri); } return spatialDataSetIdentifier; }
/** * Write {@link InspireUniqueResourceIdentifier} to stream * * @param uniqueResourceIdentifier * {@link InspireUniqueResourceIdentifier} to write to stream * @throws XMLStreamException * If an error occurs when writing the object to stream */ private void writeUniqueResourceIdentifierContent(InspireUniqueResourceIdentifier uniqueResourceIdentifier) throws XMLStreamException { // TODO Check if metadataURL and/or Code/Namespace (attr(name, value);) writeCode(uniqueResourceIdentifier.getCode()); if (uniqueResourceIdentifier.isSetNamespace()) { writeNamespace(uniqueResourceIdentifier.getNamespace()); } }
/** * Get the spatial dataset identifiers * * @param version * the service version * @return the spatial dataset identifiers */ private Set<InspireUniqueResourceIdentifier> getSpatialDataSetIdentifier(String version) { Set<InspireUniqueResourceIdentifier> spatialDataSetIdentifier = Sets.newHashSet(); for (String offering : getCache().getOfferings()) { InspireUniqueResourceIdentifier iuri = new InspireUniqueResourceIdentifier(offering); if (getInspireHelper().isSetNamespace()) { iuri.setNamespace(getInspireHelper().getNamespace()); } else { iuri.setNamespace(ServiceConfiguration.getInstance().getServiceURL()); } spatialDataSetIdentifier.add(iuri); } return spatialDataSetIdentifier; }
/** * Check if the namespace is set * * @return <code>true</code>, if the namespace is set */ public boolean isSetNamespace() { return !Strings.isNullOrEmpty(getNamespace()); }
/** * Check if the metadata URL is set * * @return <code>true</code>, if the metadata URL is set */ public boolean isSetMetadataUrl() { return !Strings.isNullOrEmpty(getMetadataUrl()); }