Package thredds.catalog
Class InvDatasetImplProxy
- java.lang.Object
-
- thredds.catalog.InvDataset
-
- thredds.catalog.InvDatasetImpl
-
- thredds.catalog.InvDatasetImplProxy
-
public class InvDatasetImplProxy extends InvDatasetImpl
Proxy an InvDatasetImpl to another InvDatasetImpl.
-
-
Field Summary
-
Fields inherited from class thredds.catalog.InvDatasetImpl
log, mark, ncmlElement, tm, tmi
-
Fields inherited from class thredds.catalog.InvDataset
access, authorityName, catalog, collectionType, contributors, creators, dataFormatType, datasets, dataType, dates, defaultService, docs, gc, harvest, id, keywords, metadata, name, parent, projects, properties, publishers, restrictAccess, services, tc, variableMapLink, variables
-
-
Constructor Summary
Constructors Constructor Description InvDatasetImplProxy(String aliasName, InvDatasetImpl proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAccess(InvAccess p0)Add InvAccess element to this dataset.voidaddDataset(InvDatasetImpl p0)Add a nested dataset.voidaddDocumentation(InvDocumentation p0)Add documentation element to this dataset.voidaddProperty(InvProperty p0)Add a property to this datasetvoidaddService(InvService p0)Add a service to this dataset.Stringdump()booleanequals(Object p0)InvDatasetImpl elements with same values are equal.InvDatasetImplfindDatasetByName(String p0)Find an immediate child dataset by its name.StringfindProperty(String p0)Finds the first property declared in the dataset with the given name.InvServicefindService(String p0)Find the named service declared in this dataset or one of its parents.booleanfinish()Finish constructing after all elements have been added.List<InvAccess>getAccess()Get all access elements for this dataset.InvAccessgetAccess(ServiceType p0)Get access element of the specified service type for this dataset.List<InvAccess>getAccessLocal()StringgetAlias()StringgetAliasName()StringgetAuthority()Get authority for this Dataset, may be null.ucar.nc2.time.CalendarDateRangegetCalendarDateCoverage()get time coverage as CalendarDateRangeCollectionTypegetCollectionType()Get collectionTypeList<ThreddsMetadata.Contributor>getContributors()get Contributor metadataList<ThreddsMetadata.Source>getCreators()get any Creator metadataDataFormatTypegetDataFormatType()Get the DataFormatType (which may be inherited from parent), or null .List<InvDataset>getDatasets()Get a list of all the nested datasets.ucar.nc2.constants.FeatureTypegetDataType()Get the DataType (which may be inherited from parent), or null .List<ucar.nc2.units.DateType>getDates()get any DateType metadataList<InvDocumentation>getDocumentation()Get list of documentation elements for this dataset.StringgetDocumentation(String p0)get specific type of documentationStringgetFullName()Get the full, heirarchical name of the dataset, which has all parent collection names.ThreddsMetadata.GeospatialCoveragegetGeospatialCoverage()get geospatial coverageStringgetID()Get the id of the dataset, or null.List<ThreddsMetadata.Vocab>getKeywords()get any Keyword metadataThreddsMetadatagetLocalMetadata()Get the metadata stored in this dataset element.protected booleangetMark()FilteringList<InvMetadata>getMetadata()Get the metadata elements for this InvDataset.List<InvMetadata>getMetadata(MetadataType p0)Get the metadata elements of the specified type.StringgetName()Get the "human readable" name of the dataset.InvDatasetgetParent()Get parent dataset.InvCataloggetParentCatalog()Get containing catalog.List<ThreddsMetadata.Vocab>getProjects()get Projects metadataList<InvProperty>getProperties()Get all properties for this dataset.List<ThreddsMetadata.Source>getPublishers()get Publisher metadataInvServicegetServiceDefault()Find the default service for this dataset and its children.List<InvService>getServicesLocal()Get services attached specifically to this dataset.StringgetUniqueID()If this dataset has an authority and an ID, then the concatenation of them is the globally unique ID.StringgetUrlPath()Get urlPath for this DatasetObjectgetUserProperty(Object p0)Look up the User property having the given keyList<ThreddsMetadata.Variables>getVariables()get Variable metadatabooleanhasAccess()If this dataset has access elements.inthashCode()Override Object.hashCode() to implement equals.booleanhasNestedDatasets()If this dataset has nested datasets.booleanisHarvest()booleanremoveDataset(InvDatasetImpl p0)Remove the given dataset element from this dataset if it is in the dataset.voidremoveService(InvService p0)Remove a service from this dataset.voidsetAlias(String p0)Set alias for this DatasetvoidsetAuthority(String p0)Set authorityName for this DatasetvoidsetCatalog(InvCatalog p0)Set the containing catalog; use only for top level dataset.voidsetCollectionType(CollectionType p0)Set collectionTypevoidsetContributors(List<ThreddsMetadata.Contributor> p0)voidsetGeospatialCoverage(ThreddsMetadata.GeospatialCoverage p0)voidsetHarvest(boolean p0)Set harvestvoidsetID(String p0)Set the ID for this DatasetvoidsetKeywords(List<ThreddsMetadata.Vocab> p0)voidsetLocalMetadata(ThreddsMetadata p0)protected voidsetMark(boolean p0)voidsetName(String p0)Set name of this Dataset.voidsetParent(InvDatasetImpl p0)Set the parent dataset.voidsetProjects(List<ThreddsMetadata.Vocab> p0)voidsetPublishers(List<ThreddsMetadata.Source> p0)voidsetServicesLocal(List<InvService> p0)Set the list of services attached specifically to this dataset.voidsetTimeCoverage(ucar.nc2.units.DateRange p0)voidsetUrlPath(String p0)Set the urlPath for this InvDatasetImplvoidsetUserProperty(Object p0, Object p1)StringtoString()-
Methods inherited from class thredds.catalog.InvDatasetImpl
addAccess, addDataset, canonicalize, getDataSize, getLastModifiedDate, getLocalMetadataInheritable, getNcmlElement, getParentReal, getServiceName, removeLocalMetadata, replaceDataset, resolve, setDataFormatType, setDataSize, setDataType, setLastModifiedDate, setLastModifiedDate, setNcmlElement, setResourceControl, setServiceName, setTimeCoverage, transferMetadata, writeHtmlDescription, writeHtmlDescription
-
Methods inherited from class thredds.catalog.InvDataset
findAccess, getCatalogUrl, getHistory, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getTimeCoverage, getVariableMapLink, getVariables
-
-
-
-
Constructor Detail
-
InvDatasetImplProxy
public InvDatasetImplProxy(String aliasName, InvDatasetImpl proxy)
-
-
Method Detail
-
getAliasName
public String getAliasName()
-
addAccess
public void addAccess(InvAccess p0)
Description copied from class:InvDatasetImplAdd InvAccess element to this dataset.- Overrides:
addAccessin classInvDatasetImpl- Parameters:
p0- add dthis
-
addDataset
public void addDataset(InvDatasetImpl p0)
Description copied from class:InvDatasetImplAdd a nested dataset.- Overrides:
addDatasetin classInvDatasetImpl- Parameters:
p0- add this
-
addDocumentation
public void addDocumentation(InvDocumentation p0)
Description copied from class:InvDatasetImplAdd documentation element to this dataset.- Overrides:
addDocumentationin classInvDatasetImpl- Parameters:
p0- add this
-
addProperty
public void addProperty(InvProperty p0)
Description copied from class:InvDatasetImplAdd a property to this dataset- Overrides:
addPropertyin classInvDatasetImpl- Parameters:
p0- add this
-
addService
public void addService(InvService p0)
Description copied from class:InvDatasetImplAdd a service to this dataset.- Overrides:
addServicein classInvDatasetImpl- Parameters:
p0- add this service to the dataset
-
dump
public String dump()
- Overrides:
dumpin classInvDatasetImpl- Returns:
- debugging info
-
equals
public boolean equals(Object p0)
Description copied from class:InvDatasetImplInvDatasetImpl elements with same values are equal.- Overrides:
equalsin classInvDatasetImpl
-
findDatasetByName
public InvDatasetImpl findDatasetByName(String p0)
Description copied from class:InvDatasetFind an immediate child dataset by its name.- Overrides:
findDatasetByNamein classInvDataset- Parameters:
p0- match on this name- Returns:
- dataset if found or null if not exist.
-
findProperty
public String findProperty(String p0)
Description copied from class:InvDatasetFinds the first property declared in the dataset with the given name. If a property other than the first is desired, it can be obtained viaInvDataset.getProperties().The property may have been specified in the dataset or in an enclosing parent element.
- Overrides:
findPropertyin classInvDataset- Parameters:
p0- the name of the property.- Returns:
- the string value of the first property with the given name or
nullif no such property exists.
-
findService
public InvService findService(String p0)
Description copied from class:InvDatasetFind the named service declared in this dataset or one of its parents.- Overrides:
findServicein classInvDataset- Parameters:
p0- match this name- Returns:
- first service that matches the given name, or null if none found.
-
finish
public boolean finish()
Description copied from class:InvDatasetImplFinish constructing after all elements have been added. This does the inheritence thing This can be called again if new elements are added.- Overrides:
finishin classInvDatasetImpl- Returns:
- true if successful.
-
getAccess
public InvAccess getAccess(ServiceType p0)
Description copied from class:InvDatasetGet access element of the specified service type for this dataset. If more than one, get the first one.- Overrides:
getAccessin classInvDataset- Parameters:
p0- find this ServiceType- Returns:
- InvAccess or null if there is not one.
-
getAccess
public List<InvAccess> getAccess()
Description copied from class:InvDatasetGet all access elements for this dataset. This list will expand any compound services.- Overrides:
getAccessin classInvDataset- Returns:
- List of InvAccess objects. List may not be null, may be empty.
-
getAccessLocal
public List<InvAccess> getAccessLocal()
- Overrides:
getAccessLocalin classInvDatasetImpl- Returns:
- the local access (non-expanded) elements.
-
getAlias
public String getAlias()
- Overrides:
getAliasin classInvDatasetImpl- Returns:
- alias for this Dataset, if there is one
-
getAuthority
public String getAuthority()
Description copied from class:InvDatasetGet authority for this Dataset, may be null.- Overrides:
getAuthorityin classInvDataset- Returns:
- authority for this Dataset, or null.
-
getCollectionType
public CollectionType getCollectionType()
Description copied from class:InvDatasetGet collectionType- Overrides:
getCollectionTypein classInvDataset- Returns:
- collectionType, or null
-
getContributors
public List<ThreddsMetadata.Contributor> getContributors()
Description copied from class:InvDatasetget Contributor metadata- Overrides:
getContributorsin classInvDataset- Returns:
- List of type ThreddsMetadata.Contributor, may be empty
-
getCreators
public List<ThreddsMetadata.Source> getCreators()
Description copied from class:InvDatasetget any Creator metadata- Overrides:
getCreatorsin classInvDataset- Returns:
- List of type ThreddsMetadata.Source, may be empty
-
getDataFormatType
public DataFormatType getDataFormatType()
Description copied from class:InvDatasetGet the DataFormatType (which may be inherited from parent), or null .- Overrides:
getDataFormatTypein classInvDataset- Returns:
- the DataFormatType or null .
-
getDataType
public ucar.nc2.constants.FeatureType getDataType()
Description copied from class:InvDatasetGet the DataType (which may be inherited from parent), or null .- Overrides:
getDataTypein classInvDataset- Returns:
- the DataType or null
-
getDatasets
public List<InvDataset> getDatasets()
Description copied from class:InvDatasetGet a list of all the nested datasets.- Overrides:
getDatasetsin classInvDataset- Returns:
- list of objects of type InvDataset. May be empty, not null.
-
getDates
public List<ucar.nc2.units.DateType> getDates()
Description copied from class:InvDatasetget any DateType metadata- Overrides:
getDatesin classInvDataset- Returns:
- List of type DateType, may be empty
-
getDocumentation
public List<InvDocumentation> getDocumentation()
Description copied from class:InvDatasetGet list of documentation elements for this dataset.- Overrides:
getDocumentationin classInvDataset- Returns:
- list of InvDocumentation objects. May be empty, not null.
-
getDocumentation
public String getDocumentation(String p0)
Description copied from class:InvDatasetget specific type of documentation- Overrides:
getDocumentationin classInvDataset- Parameters:
p0- find this type of documentation- Returns:
- contents of documentation of specified type
-
getFullName
public String getFullName()
Description copied from class:InvDatasetGet the full, heirarchical name of the dataset, which has all parent collection names.- Overrides:
getFullNamein classInvDataset- Returns:
- full, heirarchical name of the dataset, which has all parent collection names.
-
getGeospatialCoverage
public ThreddsMetadata.GeospatialCoverage getGeospatialCoverage()
Description copied from class:InvDatasetget geospatial coverage- Overrides:
getGeospatialCoveragein classInvDataset- Returns:
- geospatial coverage, or null if none
-
getID
public String getID()
Description copied from class:InvDatasetGet the id of the dataset, or null.- Overrides:
getIDin classInvDataset- Returns:
- the id of the dataset, or null if none.
-
getKeywords
public List<ThreddsMetadata.Vocab> getKeywords()
Description copied from class:InvDatasetget any Keyword metadata- Overrides:
getKeywordsin classInvDataset- Returns:
- List of type ThreddsMetadata.Vocab, may be empty
-
getLocalMetadata
public ThreddsMetadata getLocalMetadata()
Description copied from class:InvDatasetImplGet the metadata stored in this dataset element. Inherited metadata only in an InvMetadata object.- Overrides:
getLocalMetadatain classInvDatasetImpl- Returns:
- the metadata stored in this dataset element.
-
getMark
protected boolean getMark()
Description copied from class:InvDatasetImplFiltering- Overrides:
getMarkin classInvDatasetImpl- Returns:
- true if this is "marked"
-
getMetadata
public List<InvMetadata> getMetadata(MetadataType p0)
Description copied from class:InvDatasetGet the metadata elements of the specified type.- Overrides:
getMetadatain classInvDataset- Parameters:
p0- find this metadata type- Returns:
- List of InvMetadata objects. List may be empty but not null.
-
getMetadata
public List<InvMetadata> getMetadata()
Description copied from class:InvDatasetGet the metadata elements for this InvDataset.- Overrides:
getMetadatain classInvDataset- Returns:
- List of InvMetadata objects. List may be empty but not null.
-
getName
public String getName()
Description copied from class:InvDatasetGet the "human readable" name of the dataset.- Overrides:
getNamein classInvDataset- Returns:
- "human readable" name of the dataset.
-
getParent
public InvDataset getParent()
Description copied from class:InvDatasetGet parent dataset.- Overrides:
getParentin classInvDataset- Returns:
- parent dataset. If top dataset, return null.
-
getParentCatalog
public InvCatalog getParentCatalog()
Description copied from class:InvDatasetGet containing catalog.- Overrides:
getParentCatalogin classInvDataset- Returns:
- containing catalog.
-
getProjects
public List<ThreddsMetadata.Vocab> getProjects()
Description copied from class:InvDatasetget Projects metadata- Overrides:
getProjectsin classInvDataset- Returns:
- List of type ThreddsMetadata.Vocab, may be empty
-
getProperties
public List<InvProperty> getProperties()
Description copied from class:InvDatasetGet all properties for this dataset. These may have been specified in the dataset or an enclosing parent element.- Overrides:
getPropertiesin classInvDataset- Returns:
- List of type InvProperty. May be empty, not null.
-
getPublishers
public List<ThreddsMetadata.Source> getPublishers()
Description copied from class:InvDatasetget Publisher metadata- Overrides:
getPublishersin classInvDataset- Returns:
- List of type ThreddsMetadata.Source, may be empty
-
getServiceDefault
public InvService getServiceDefault()
Description copied from class:InvDatasetFind the default service for this dataset and its children. If not declared in this dataset, search in parents. This is the default for any nested datasets or access elements.- Overrides:
getServiceDefaultin classInvDataset- Returns:
- default service, or null
-
getServicesLocal
public List<InvService> getServicesLocal()
Description copied from class:InvDatasetImplGet services attached specifically to this dataset.- Overrides:
getServicesLocalin classInvDatasetImpl- Returns:
- List of type InvService. May be empty, but not null.
-
getCalendarDateCoverage
public ucar.nc2.time.CalendarDateRange getCalendarDateCoverage()
Description copied from class:InvDatasetget time coverage as CalendarDateRange- Overrides:
getCalendarDateCoveragein classInvDataset- Returns:
- time coverage, or null if none
-
getUniqueID
public String getUniqueID()
Description copied from class:InvDatasetIf this dataset has an authority and an ID, then the concatenation of them is the globally unique ID.- Overrides:
getUniqueIDin classInvDataset- Returns:
- globally unique ID, or null if missing authority or ID.
-
getUrlPath
public String getUrlPath()
Description copied from class:InvDatasetImplGet urlPath for this Dataset- Overrides:
getUrlPathin classInvDatasetImpl- Returns:
- urlPath for this Dataset
-
getUserProperty
public Object getUserProperty(Object p0)
Description copied from class:InvDatasetImplLook up the User property having the given key- Overrides:
getUserPropertyin classInvDatasetImpl- Parameters:
p0- property key- Returns:
- User property having the given key, or null
-
getVariables
public List<ThreddsMetadata.Variables> getVariables()
Description copied from class:InvDatasetget Variable metadata- Overrides:
getVariablesin classInvDataset- Returns:
- List of type ThreddsMetadata.Variables, may be empty
-
hasAccess
public boolean hasAccess()
Description copied from class:InvDatasetIf this dataset has access elements.- Overrides:
hasAccessin classInvDataset- Returns:
- true if has access elements.
-
hasNestedDatasets
public boolean hasNestedDatasets()
Description copied from class:InvDatasetIf this dataset has nested datasets.- Overrides:
hasNestedDatasetsin classInvDataset- Returns:
- true if has nested datasets.
-
hashCode
public int hashCode()
Description copied from class:InvDatasetImplOverride Object.hashCode() to implement equals.- Overrides:
hashCodein classInvDatasetImpl
-
isHarvest
public boolean isHarvest()
- Overrides:
isHarvestin classInvDataset- Returns:
- if harvest is true
-
removeDataset
public boolean removeDataset(InvDatasetImpl p0)
Description copied from class:InvDatasetImplRemove the given dataset element from this dataset if it is in the dataset.- Overrides:
removeDatasetin classInvDatasetImpl- Parameters:
p0- - the dataset element to be removed- Returns:
- true if this dataset contained the given dataset element.
-
removeService
public void removeService(InvService p0)
Description copied from class:InvDatasetImplRemove a service from this dataset.- Overrides:
removeServicein classInvDatasetImpl- Parameters:
p0- remove this
-
setAlias
public void setAlias(String p0)
Description copied from class:InvDatasetImplSet alias for this Dataset- Overrides:
setAliasin classInvDatasetImpl- Parameters:
p0- ID of another Dataset
-
setAuthority
public void setAuthority(String p0)
Description copied from class:InvDatasetImplSet authorityName for this Dataset- Overrides:
setAuthorityin classInvDatasetImpl- Parameters:
p0- for this Dataset
-
setCatalog
public void setCatalog(InvCatalog p0)
Description copied from class:InvDatasetImplSet the containing catalog; use only for top level dataset.- Overrides:
setCatalogin classInvDatasetImpl- Parameters:
p0- the containing catalog for the top level dataset.
-
setCollectionType
public void setCollectionType(CollectionType p0)
Description copied from class:InvDatasetImplSet collectionType- Overrides:
setCollectionTypein classInvDatasetImpl- Parameters:
p0- the collection type
-
setContributors
public void setContributors(List<ThreddsMetadata.Contributor> p0)
- Overrides:
setContributorsin classInvDatasetImpl
-
setGeospatialCoverage
public void setGeospatialCoverage(ThreddsMetadata.GeospatialCoverage p0)
- Overrides:
setGeospatialCoveragein classInvDatasetImpl
-
setHarvest
public void setHarvest(boolean p0)
Description copied from class:InvDatasetImplSet harvest- Overrides:
setHarvestin classInvDatasetImpl- Parameters:
p0- true if this dataset should be harvested for Digital Libraries
-
setID
public void setID(String p0)
Description copied from class:InvDatasetImplSet the ID for this Dataset- Overrides:
setIDin classInvDatasetImpl- Parameters:
p0- unique ID
-
setKeywords
public void setKeywords(List<ThreddsMetadata.Vocab> p0)
- Overrides:
setKeywordsin classInvDatasetImpl
-
setLocalMetadata
public void setLocalMetadata(ThreddsMetadata p0)
- Overrides:
setLocalMetadatain classInvDatasetImpl
-
setMark
protected void setMark(boolean p0)
- Overrides:
setMarkin classInvDatasetImpl
-
setName
public void setName(String p0)
Description copied from class:InvDatasetImplSet name of this Dataset.- Overrides:
setNamein classInvDatasetImpl- Parameters:
p0- of the dataset
-
setParent
public void setParent(InvDatasetImpl p0)
Description copied from class:InvDatasetImplSet the parent dataset.- Overrides:
setParentin classInvDatasetImpl- Parameters:
p0- parent dataset
-
setProjects
public void setProjects(List<ThreddsMetadata.Vocab> p0)
- Overrides:
setProjectsin classInvDatasetImpl
-
setPublishers
public void setPublishers(List<ThreddsMetadata.Source> p0)
- Overrides:
setPublishersin classInvDatasetImpl
-
setServicesLocal
public void setServicesLocal(List<InvService> p0)
Description copied from class:InvDatasetImplSet the list of services attached specifically to this dataset. Discard any previous servies.- Overrides:
setServicesLocalin classInvDatasetImpl- Parameters:
p0- list of services.
-
setTimeCoverage
public void setTimeCoverage(ucar.nc2.units.DateRange p0)
- Overrides:
setTimeCoveragein classInvDatasetImpl
-
setUrlPath
public void setUrlPath(String p0)
Description copied from class:InvDatasetImplSet the urlPath for this InvDatasetImpl- Overrides:
setUrlPathin classInvDatasetImpl- Parameters:
p0- the urlPath for this InvDatasetImpl
-
setUserProperty
public void setUserProperty(Object p0, Object p1)
- Overrides:
setUserPropertyin classInvDatasetImpl
-
toString
public String toString()
- Overrides:
toStringin classInvDatasetImpl
-
-