public class ReadableCache extends AbstractContentCache
ContentCache
implementation that offers a readable interface to the
cache. All methods return unmodifiable views of the cache.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
ReadableCache() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllowedFeatureOfInterestTypesForOffering(String offering)
Returns the allowed featureOfInterest types for the specified offering.
|
Set<String> |
getAllowedObservationTypesForOffering(String offering)
Returns the allowed observation types for the specified offering.
|
Set<String> |
getChildFeatures(String featureIdentifier,
boolean fullHierarchy,
boolean includeSelf)
Returns collection containing child features for the passed feature,
optionally navigating the full hierarchy and including itself.
|
Set<String> |
getChildProcedures(Set<String> procedureIdentifiers,
boolean fullHierarchy,
boolean includeSelves)
Returns collection containing child procedures for the passed procedures,
optionally navigating the full hierarchy and including itself.
|
Set<String> |
getChildProcedures(String procedureIdentifier,
boolean fullHierarchy,
boolean includeSelf)
Returns collection containing child procedures for the passed procedures,
optionally navigating the full hierarchy and including itself.
|
Set<String> |
getCompositePhenomenonsForOffering(String offering)
Get the composite phenomenons associated with the specified offering.
|
SosEnvelope |
getEnvelopeForOffering(String offering)
Get the envelope associated with the specified offering.
|
Set<Integer> |
getEpsgCodes() |
String |
getFeatureOfInterestHumanReadableNameForIdentifier(String identifier) |
String |
getFeatureOfInterestIdentifierForHumanReadableName(String humanReadableName) |
Set<String> |
getFeatureOfInterestTypesForOffering(String offering)
Get the featureOfInterest types associated with the specified offering.
|
Set<String> |
getFeaturesOfInterest() |
Set<String> |
getFeaturesOfInterestForOffering(String offering)
Returns all FeaturesOfInterest for the specified offering.
|
Set<String> |
getFeaturesOfInterestForResultTemplate(String resultTemplate)
Returns all FeaturesOfInterest for the specified SosResultTemplate.
|
Set<String> |
getFeaturesOfInterestWithResultTemplate() |
SosEnvelope |
getGlobalEnvelope() |
Set<String> |
getHiddenChildProceduresForOffering(String offering)
Get the hidden child procedures associated with the specified offering.
|
LocalizedString |
getI18nDescriptionForOffering(String offering,
Locale i18n)
Get the description in the specified language of the specified offering.
|
MultilingualString |
getI18nDescriptionsForOffering(String offering)
Get all descriptions of the specified offering.
|
LocalizedString |
getI18nNameForOffering(String offering,
Locale i18n)
Get the name in the specified language of the specified offering.
|
MultilingualString |
getI18nNamesForOffering(String offering)
Get all names of the specified offering.
|
org.joda.time.DateTime |
getMaxPhenomenonTime() |
org.joda.time.DateTime |
getMaxPhenomenonTimeForOffering(String offering)
Returns the maximal phenomenon time for the specified offering.
|
org.joda.time.DateTime |
getMaxPhenomenonTimeForProcedure(String procedure)
Returns the maximal phenomenon time period for the specified procedure.
|
org.joda.time.DateTime |
getMaxResultTime() |
org.joda.time.DateTime |
getMaxResultTimeForOffering(String offering)
Returns the maximal result time for the specified offering.
|
org.joda.time.DateTime |
getMinPhenomenonTime() |
org.joda.time.DateTime |
getMinPhenomenonTimeForOffering(String offering)
Returns the minimal phenomenon time for the specified offering.
|
org.joda.time.DateTime |
getMinPhenomenonTimeForProcedure(String procedure)
Returns the minimal phenomenon time period for the specified procedure.
|
org.joda.time.DateTime |
getMinResultTime() |
org.joda.time.DateTime |
getMinResultTimeForOffering(String offering)
Returns the minimal result time for the specified offering.
|
String |
getNameForOffering(String offering)
Gets the name of the specified offering.
|
Set<String> |
getObservableProperties() |
Set<String> |
getObservablePropertiesForCompositePhenomenon(String compositePhenomenon)
Get the observable properties associated with the specified procedure.
|
Set<String> |
getObservablePropertiesForOffering(String offering)
Get the observable properties associated with the specified offering.
|
Set<String> |
getObservablePropertiesForProcedure(String procedure)
Get the observable properties associated with the specified procedure.
|
Set<String> |
getObservablePropertiesForResultTemplate(String resultTemplate)
Get the observable properties associated with the specified result
template.
|
Set<String> |
getObservablePropertiesWithResultTemplate() |
String |
getObservablePropertyHumanReadableNameForIdentifier(String identifier) |
String |
getObservablePropertyIdentifierForHumanReadableName(String humanReadableName) |
Set<String> |
getObservationTypesForOffering(String offering)
Get the observation types associated with the specified offering.
|
String |
getOfferingHumanReadableNameForIdentifier(String identifier) |
String |
getOfferingIdentifierForHumanReadableName(String humanReadableName) |
Set<String> |
getOfferings() |
Set<String> |
getOfferingsForObservableProperty(String observableProperty)
Get the offerings associated with the specified observable property.
|
Set<String> |
getOfferingsForProcedure(String procedure)
Get the offerings associated with the specified procedure.
|
Set<String> |
getOfferingsWithResultTemplate() |
Set<String> |
getParentFeatures(Set<String> featureIdentifiers,
boolean fullHierarchy,
boolean includeSelves)
Returns collection containing parent features for the passed features,
optionally navigating the full hierarchy and including itself.
|
Set<String> |
getParentFeatures(String featureIdentifier,
boolean fullHierarchy,
boolean includeSelf)
Returns collection containing parent features for the passed feature,
optionally navigating the full hierarchy and including itself.
|
Set<String> |
getParentProcedures(Set<String> procedureIdentifiers,
boolean fullHierarchy,
boolean includeSelves)
Returns collection containing parent procedures for the passed
procedures, optionally navigating the full hierarchy and including
itself.
|
Set<String> |
getParentProcedures(String procedureIdentifier,
boolean fullHierarchy,
boolean includeSelf)
Returns collection containing parent procedures for the passed procedure,
optionally navigating the full hierarchy and including itself.
|
String |
getProcedureHumanReadableNameForIdentifier(String identifier) |
String |
getProcedureIdentifierForHumanReadableName(String humanReadableName) |
Set<String> |
getProcedures() |
Set<String> |
getProceduresForFeatureOfInterest(String featureOfInterest)
Get the procedures associated with the specified feature of interest.
|
Set<String> |
getProceduresForObservableProperty(String observableProperty)
Get the procedures associated with the specified observable property.
|
Set<String> |
getProceduresForOffering(String offering)
Get the procedures associated with the specified offering.
|
Set<String> |
getRelatedFeatures() |
Set<String> |
getRelatedFeaturesForOffering(String offering)
Get the related features associated with the specified offering.
|
Set<String> |
getRequstableProcedureDescriptionFormat()
Get supported requestable procedure description format
|
Set<String> |
getResultTemplates() |
Set<String> |
getResultTemplatesForOffering(String offering)
Get the result templates associated with the specified offering.
|
Set<String> |
getRolesForRelatedFeature(String relatedFeature)
Get the roles associated with the specified related feature.
|
SosEnvelope |
getSpatialFilteringProfileEnvelopeForOffering(String offering)
Get the Spatial Filtering Profile envelope associated with the specified
offering.
|
Set<Locale> |
getSupportedLanguages()
Get the supported languages
|
boolean |
hasEnvelopeForOffering(String offering)
Checks whether the specified offering has a envelope.
|
boolean |
hasEpsgCode(Integer epsgCode)
Checks whether the specified epsg code exists.
|
boolean |
hasFeatureOfInterest(String featureOfInterest)
Checks whether or not the specified feature is contained in this cache.
|
boolean |
hasFeatureOfInterestType(String featureOfInterestType)
Checks whether the specified featureOfInterest type exists.
|
boolean |
hasGlobalEnvelope() |
boolean |
hasI18NDescriptionForOffering(String offering,
Locale i18n)
Check if there is a I18N description for the specified offering and language.
|
boolean |
hasI18NNamesForOffering(String offering,
Locale i18n)
Check if there are I18N names for the specified offering and language.
|
boolean |
hasMaxPhenomenonTime() |
boolean |
hasMaxPhenomenonTimeForOffering(String offering)
Returns the whether or not the maximal phenomenon time for the specified
offering is set.
|
boolean |
hasMaxPhenomenonTimeForProcedure(String procedure)
Returns the whether or not the maximal phenomenon time for the specified
procedure is set.
|
boolean |
hasMaxResultTime() |
boolean |
hasMaxResultTimeForOffering(String offering)
Returns the whether or not the maximal result time for the specified
offering is set.
|
boolean |
hasMinPhenomenonTime() |
boolean |
hasMinPhenomenonTimeForOffering(String offering)
Returns the whether or not the minimal phenomenon time for the specified
offering is set.
|
boolean |
hasMinPhenomenonTimeForProcedure(String procedure)
Returns the whether or not the minimal phenomenon time for the specified
procedure is set.
|
boolean |
hasMinResultTime() |
boolean |
hasMinResultTimeForOffering(String offering)
Returns the whether or not the minimal result time for the specified
offering is set.
|
boolean |
hasObservableProperty(String observableProperty)
Checks whether the specified ObservableProperty is known.
|
boolean |
hasObservationType(String observationType)
Checks whether the specified observation type exists.
|
boolean |
hasOffering(String offering)
Checks whether the specified offering exists.
|
boolean |
hasProcedure(String procedure)
Checks whether the specified procedure exists.
|
boolean |
hasRelatedFeature(String relatedFeature)
Checks whether the specified related feature exists.
|
boolean |
hasRequstableProcedureDescriptionFormat(String format)
Is the specific requestable procedure description format supported
|
boolean |
hasResultTemplate(String resultTemplate)
Checks whether the specified result template exists.
|
boolean |
hasSpatialFilteringProfileEnvelopeForOffering(String offering)
Checks whether the specified offering has a Spatial Filtering Profile
envelope.
|
boolean |
hasSupportedLanguage()
Has the service supported languages
|
boolean |
isLanguageSupported(Locale language)
Is the specific language supported
|
boolean |
isRelatedFeatureSampled(String relatedFeatureIdentifier)
Checks whether the specified related feature has been used as sampling
feature
|
copyOf, copyOf, equals, getAllowedFeatureOfInterestTypesForOfferingsMap, getAllowedObservationTypesForOfferingsMap, getChildFeaturesForFeaturesOfInterestMap, getChildProceduresForProceduresMap, getCompositePhenomenonsForOfferingsMap, getDefaultEPSGCode, getEnvelopeForOfferingsMap, getEpsgCodesSet, getFeatureOfInterestHumanReadableNameForIdentifier, getFeatureOfInterestIdentifierForHumanReadableName, getFeatureOfInterestTypesForOfferingsMap, getFeaturesOfInterestForOfferingMap, getFeaturesOfInterestForResultTemplatesMap, getFeaturesOfInterestSet, getGlobalPhenomenonTimeEnvelope, getGlobalResultTimeEnvelope, getGlobalSpatialEnvelope, getHiddenChildProceduresForOfferingsMap, getI18nDescriptionForOfferingsMap, getI18nNameForOfferingsMap, getMaxPhenomenonTimeForOfferingsMap, getMaxPhenomenonTimeForProceduresMap, getMaxResultTimeForOfferingsMap, getMinPhenomenonTimeForOfferingsMap, getMinPhenomenonTimeForProceduresMap, getMinResultTimeForOfferingsMap, getNameForOfferingsMap, getObservablePropertiesForCompositePhenomenonsMap, getObservablePropertiesForOfferingsMap, getObservablePropertiesForProceduresMap, getObservablePropertiesForResultTemplatesMap, getObservablePropertyHumanReadableNameForIdentifier, getObservablePropertyIdentifierForHumanReadableName, getObservationTypesForOfferingsMap, getOfferingHumanReadableNameForIdentifier, getOfferingIdentifierForHumanReadableName, getOfferingsForObservablePropertiesMap, getOfferingsForProceduresMap, getOfferingsSet, getParentFeaturesForFeaturesOfInterestMap, getParentProceduresForProceduresMap, getProcedureHumanReadableNameForIdentifier, getProcedureIdentifierForHumanReadableName, getProceduresForFeaturesOfInterestMap, getProceduresForObservablePropertiesMap, getProceduresForOfferingsMap, getProceduresSet, getRelatedFeaturesForOfferingsMap, getRequestableProcedureDescriptionFormats, getResultTemplatesForOfferingsMap, getResultTemplatesSet, getRolesForRelatedFeaturesMap, getSpatialFilteringProfileEnvelopeForOfferingsMap, getSupportedLanguageSet, greaterZero, hashCode, newSynchronizedBiMap, newSynchronizedBiMap, newSynchronizedMap, newSynchronizedMap, newSynchronizedSet, newSynchronizedSet, noNullOrEmptyValues, noNullValues, noNullValues, notNull, notNullOrEmpty, setDefaultEPSGCode, setGlobalSpatialEnvelope
getFeatureOfInterestTypes, getObservationTypes
private static final long serialVersionUID
public org.joda.time.DateTime getMaxPhenomenonTime()
public org.joda.time.DateTime getMinPhenomenonTime()
public SosEnvelope getGlobalEnvelope()
public Set<String> getOfferingsForObservableProperty(String observableProperty)
ContentCache
observableProperty
- the observable propertypublic Set<String> getOfferingsForProcedure(String procedure)
ContentCache
procedure
- the procedurepublic Set<String> getProceduresForFeatureOfInterest(String featureOfInterest)
ContentCache
featureOfInterest
- the feature of interestpublic Set<String> getProceduresForObservableProperty(String observableProperty)
ContentCache
observableProperty
- the observable propertypublic Set<String> getProceduresForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getHiddenChildProceduresForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getRelatedFeaturesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getResultTemplatesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getRolesForRelatedFeature(String relatedFeature)
ContentCache
relatedFeature
- the related featurepublic SosEnvelope getEnvelopeForOffering(String offering)
ContentCache
offering
- the offeringpublic String getNameForOffering(String offering)
ContentCache
offering
- the offeringpublic LocalizedString getI18nNameForOffering(String offering, Locale i18n)
ContentCache
offering
- the offeringi18n
- the languagepublic MultilingualString getI18nNamesForOffering(String offering)
ContentCache
offering
- the offeringpublic boolean hasI18NNamesForOffering(String offering, Locale i18n)
ContentCache
offering
- the offeringi18n
- the languagetrue
, if there are I18N names for thepublic LocalizedString getI18nDescriptionForOffering(String offering, Locale i18n)
ContentCache
offering
- the offeringi18n
- the languagepublic MultilingualString getI18nDescriptionsForOffering(String offering)
ContentCache
offering
- the offeringpublic boolean hasI18NDescriptionForOffering(String offering, Locale i18n)
ContentCache
offering
- the offeringi18n
- the languagetrue
, if there are I18N names for thepublic Set<String> getCompositePhenomenonsForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getObservablePropertiesForCompositePhenomenon(String compositePhenomenon)
ContentCache
compositePhenomenon
- the composite phenomenonpublic org.joda.time.DateTime getMaxPhenomenonTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic org.joda.time.DateTime getMinPhenomenonTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic org.joda.time.DateTime getMaxPhenomenonTimeForProcedure(String procedure)
ContentCache
procedure
- the procedure identifierpublic org.joda.time.DateTime getMinPhenomenonTimeForProcedure(String procedure)
ContentCache
procedure
- the procedure identifierpublic Set<String> getAllowedObservationTypesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getFeaturesOfInterestForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getFeaturesOfInterestForResultTemplate(String resultTemplate)
ContentCache
resultTemplate
- the resultTemplatepublic Set<String> getObservablePropertiesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getObservablePropertiesForProcedure(String procedure)
ContentCache
procedure
- the offeringpublic Set<String> getObservationTypesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getObservablePropertiesForResultTemplate(String resultTemplate)
ContentCache
resultTemplate
- the result templatepublic Set<String> getParentProcedures(String procedureIdentifier, boolean fullHierarchy, boolean includeSelf)
ContentCache
procedureIdentifier
- the procedure id to find parents forfullHierarchy
- whether or not to traverse the full procedure hierarchy in one
direction starting from procedureincludeSelf
- whether or not to include the passed procedure id in the
resultpublic Set<String> getParentFeatures(String featureIdentifier, boolean fullHierarchy, boolean includeSelf)
ContentCache
featureIdentifier
- the feature id to find parents forfullHierarchy
- whether or not to navigate the full feature hierarchyincludeSelf
- whether or not to include the passed feature id in the resultpublic Set<String> getChildProcedures(String procedureIdentifier, boolean fullHierarchy, boolean includeSelf)
ContentCache
procedureIdentifier
- procedure id to find children forfullHierarchy
- whether or not to navigate the full procedure hierarchyincludeSelf
- whether or not to include the passed procedure id in the
resultpublic Set<String> getChildProcedures(Set<String> procedureIdentifiers, boolean fullHierarchy, boolean includeSelves)
ContentCache
procedureIdentifiers
- procedure ids to find children forfullHierarchy
- whether or not to navigate the full procedure hierarchyincludeSelves
- whether or not to include the passed procedure ids in the
resultpublic Set<String> getChildFeatures(String featureIdentifier, boolean fullHierarchy, boolean includeSelf)
ContentCache
featureIdentifier
- feature id to find children forfullHierarchy
- whether or not to traverse the full feature hierarchy in one
direction starting from featureOfInterestincludeSelf
- whether or not to include the passed feature id in the resultpublic Set<String> getParentProcedures(Set<String> procedureIdentifiers, boolean fullHierarchy, boolean includeSelves)
ContentCache
procedureIdentifiers
- the procedure id's to find parents forfullHierarchy
- whether or not to traverse the full procedure hierarchy in one
direction starting from procedureincludeSelves
- whether or not to include the passed procedure id in the
resultpublic Set<String> getParentFeatures(Set<String> featureIdentifiers, boolean fullHierarchy, boolean includeSelves)
ContentCache
featureIdentifiers
- the feature id's to find parents forfullHierarchy
- whether or not to traverse the full feature hierarchy in one
direction starting from featureOfInterestincludeSelves
- whether or not to include the passed feature id's in the
resultpublic Set<String> getFeaturesOfInterestWithResultTemplate()
public Set<String> getObservableProperties()
public Set<String> getObservablePropertiesWithResultTemplate()
public Set<String> getOfferingsWithResultTemplate()
public boolean hasFeatureOfInterest(String featureOfInterest)
ContentCache
featureOfInterest
- the featuretrue
if it is containedpublic boolean hasObservableProperty(String observableProperty)
ContentCache
observableProperty
- the observable propertytrue
if it is containedpublic boolean hasObservationType(String observationType)
ContentCache
observationType
- the observation typetrue
if it existspublic boolean hasOffering(String offering)
ContentCache
offering
- the offeringtrue
if it existspublic boolean hasProcedure(String procedure)
ContentCache
procedure
- the proceduretrue
if it existspublic boolean hasRelatedFeature(String relatedFeature)
ContentCache
relatedFeature
- the related featuretrue
if it existspublic boolean hasResultTemplate(String resultTemplate)
ContentCache
resultTemplate
- the result templatetrue
if it existspublic boolean hasEpsgCode(Integer epsgCode)
ContentCache
epsgCode
- the epsg codetrue
if it existspublic boolean hasMaxPhenomenonTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic boolean hasMinPhenomenonTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic boolean hasMaxPhenomenonTimeForProcedure(String procedure)
ContentCache
procedure
- the procedure identifierpublic boolean hasMinPhenomenonTimeForProcedure(String procedure)
ContentCache
procedure
- the procedure identifierpublic boolean hasEnvelopeForOffering(String offering)
ContentCache
offering
- the offeringtrue
if it has a envelopepublic boolean hasMaxPhenomenonTime()
public boolean hasMinPhenomenonTime()
public boolean hasGlobalEnvelope()
public org.joda.time.DateTime getMaxResultTime()
public boolean hasMaxResultTime()
public org.joda.time.DateTime getMaxResultTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic boolean hasMaxResultTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic org.joda.time.DateTime getMinResultTime()
public boolean hasMinResultTime()
public org.joda.time.DateTime getMinResultTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic boolean hasMinResultTimeForOffering(String offering)
ContentCache
offering
- the offering identifierpublic boolean isRelatedFeatureSampled(String relatedFeatureIdentifier)
ContentCache
relatedFeatureIdentifier
- the relatedFeature identifierpublic SosEnvelope getSpatialFilteringProfileEnvelopeForOffering(String offering)
ContentCache
offering
- the offeringpublic boolean hasSpatialFilteringProfileEnvelopeForOffering(String offering)
ContentCache
offering
- the offeringtrue
if it has a envelopepublic boolean hasFeatureOfInterestType(String featureOfInterestType)
ContentCache
featureOfInterestType
- the observation typetrue
if it existspublic Set<String> getFeatureOfInterestTypesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<String> getAllowedFeatureOfInterestTypesForOffering(String offering)
ContentCache
offering
- the offeringpublic Set<Locale> getSupportedLanguages()
ContentCache
public boolean hasSupportedLanguage()
ContentCache
true
, if there are supported languagespublic boolean isLanguageSupported(Locale language)
ContentCache
language
- Language to checktrue
, if the specific lanugage is supportedpublic Set<String> getRequstableProcedureDescriptionFormat()
ContentCache
public boolean hasRequstableProcedureDescriptionFormat(String format)
ContentCache
format
- format to checktrue
, if the specific format is supportedpublic String getFeatureOfInterestIdentifierForHumanReadableName(String humanReadableName)
public String getFeatureOfInterestHumanReadableNameForIdentifier(String identifier)
public String getObservablePropertyIdentifierForHumanReadableName(String humanReadableName)
public String getObservablePropertyHumanReadableNameForIdentifier(String identifier)
public String getProcedureIdentifierForHumanReadableName(String humanReadableName)
public String getProcedureHumanReadableNameForIdentifier(String identifier)
public String getOfferingIdentifierForHumanReadableName(String humanReadableName)
Copyright © 2012-2015 52north.org. All Rights Reserved.