Package thredds.client.catalog
Class Dataset
- java.lang.Object
-
- thredds.client.catalog.DatasetNode
-
- thredds.client.catalog.Dataset
-
- All Implemented Interfaces:
ThreddsMetadataContainer
- Direct Known Subclasses:
CatalogRef
@Immutable public class Dataset extends DatasetNode implements ThreddsMetadataContainer
A Client Catalog Dataset- Since:
- 1/7/2015
-
-
Field Summary
Fields Modifier and Type Field Description static StringAccessstatic StringAliasstatic StringAuthoritystatic StringCollectionTypestatic StringContributorsstatic StringCreatorsstatic StringDataFormatTypestatic StringDatasetsstatic StringDataSizestatic StringDatesstatic StringDocumentationstatic StringFeatureTypestatic StringGeospatialCoveragestatic StringHarveststatic StringIdstatic StringKeywordsstatic com.google.common.collect.ImmutableSet<String>listFldsstatic StringMetadataOtherstatic StringNcmlstatic StringNotAThreddsDatasetstatic StringProjectsstatic StringPropertiesstatic StringPublishersstatic StringRestrictAccessstatic StringServiceNamestatic StringThreddsMetadataInheritablestatic StringTimeCoveragestatic StringUrlPathstatic StringUseRemoteCatalogServicestatic StringVariableGroupsstatic StringVariableMapLinkURI-
Fields inherited from class thredds.client.catalog.DatasetNode
flds, name, parent
-
-
Constructor Summary
Constructors Constructor Description Dataset(DatasetNode parent, String name, Map<String,Object> flds, List<AccessBuilder> accessBuilders, List<DatasetBuilder> datasetBuilders)
-
Method Summary
-
Methods inherited from class thredds.client.catalog.DatasetNode
findDatasetByName, get, getDatasets, getDatasetsLocal, getDatasetsLogical, getFldIterator, getLocalFieldAsList, getName, getParent, getParentCatalog, getParentDataset, hasNestedDatasets
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface thredds.client.catalog.ThreddsMetadataContainer
getLocalFieldAsList
-
-
-
-
Field Detail
-
Access
public static final String Access
- See Also:
- Constant Field Values
-
Alias
public static final String Alias
- See Also:
- Constant Field Values
-
Authority
public static final String Authority
- See Also:
- Constant Field Values
-
CollectionType
public static final String CollectionType
- See Also:
- Constant Field Values
-
Contributors
public static final String Contributors
- See Also:
- Constant Field Values
-
Creators
public static final String Creators
- See Also:
- Constant Field Values
-
DataFormatType
public static final String DataFormatType
- See Also:
- Constant Field Values
-
Datasets
public static final String Datasets
- See Also:
- Constant Field Values
-
DataSize
public static final String DataSize
- See Also:
- Constant Field Values
-
Dates
public static final String Dates
- See Also:
- Constant Field Values
-
Documentation
public static final String Documentation
- See Also:
- Constant Field Values
-
FeatureType
public static final String FeatureType
- See Also:
- Constant Field Values
-
GeospatialCoverage
public static final String GeospatialCoverage
- See Also:
- Constant Field Values
-
Harvest
public static final String Harvest
- See Also:
- Constant Field Values
-
Id
public static final String Id
- See Also:
- Constant Field Values
-
Keywords
public static final String Keywords
- See Also:
- Constant Field Values
-
MetadataOther
public static final String MetadataOther
- See Also:
- Constant Field Values
-
Ncml
public static final String Ncml
- See Also:
- Constant Field Values
-
Projects
public static final String Projects
- See Also:
- Constant Field Values
-
Properties
public static final String Properties
- See Also:
- Constant Field Values
-
Publishers
public static final String Publishers
- See Also:
- Constant Field Values
-
RestrictAccess
public static final String RestrictAccess
- See Also:
- Constant Field Values
-
ServiceName
public static final String ServiceName
- See Also:
- Constant Field Values
-
ThreddsMetadataInheritable
public static final String ThreddsMetadataInheritable
- See Also:
- Constant Field Values
-
TimeCoverage
public static final String TimeCoverage
- See Also:
- Constant Field Values
-
VariableGroups
public static final String VariableGroups
- See Also:
- Constant Field Values
-
VariableMapLinkURI
public static final String VariableMapLinkURI
- See Also:
- Constant Field Values
-
UrlPath
public static final String UrlPath
- See Also:
- Constant Field Values
-
UseRemoteCatalogService
public static final String UseRemoteCatalogService
- See Also:
- Constant Field Values
-
NotAThreddsDataset
public static final String NotAThreddsDataset
- See Also:
- Constant Field Values
-
listFlds
public static final com.google.common.collect.ImmutableSet<String> listFlds
-
-
Constructor Detail
-
Dataset
public Dataset(DatasetNode parent, String name, Map<String,Object> flds, List<AccessBuilder> accessBuilders, List<DatasetBuilder> datasetBuilders)
-
-
Method Detail
-
makeStandalone
public static Dataset makeStandalone(String urlPath, String featureType, String dataFormatS, String serviceType)
Construct an Dataset which refers to a urlPath. This is used to create a standalone Dataset, outside of an Catalog. An "anonymous" Service is created and attached to the Dataset.- Parameters:
urlPath- : construct URL from this pathfeatureType- : feature typedataFormatS- : data formatserviceType- : ServiceType
-
getAccess
public Access getAccess(ServiceType type)
-
hasAccess
public boolean hasAccess()
-
findAccess
public Access findAccess(String accessURL)
Get access element that matches the given access standard URL. Match on a.getStandardUrlName().- Parameters:
accessURL- find theis access URL string- Returns:
- InvAccess or null if no match.
-
getCatalogUrl
public String getCatalogUrl()
Get URL to this dataset. Dataset must have an ID. Form is catalogURL#DatasetID- Returns:
- URL to this dataset.
-
getCollectionType
public String getCollectionType()
-
isDatasetScan
public boolean isDatasetScan()
-
isHarvest
public boolean isHarvest()
-
getId
public String getId()
-
getID
public String getID()
-
getUrlPath
public String getUrlPath()
-
getIdOrPath
public String getIdOrPath()
-
getNcmlElement
public org.jdom2.Element getNcmlElement()
-
getLocalField
public Object getLocalField(String fldName)
- Specified by:
getLocalFieldin interfaceThreddsMetadataContainer
-
getAuthority
public String getAuthority()
-
getDataFormatName
public String getDataFormatName()
-
getDataFormatType
public DataFormatType getDataFormatType()
-
getDataSize
public long getDataSize()
-
hasDataSize
public boolean hasDataSize()
-
getFeatureType
public FeatureType getFeatureType()
-
getFeatureTypeName
public String getFeatureTypeName()
-
getGeospatialCoverage
public ThreddsMetadata.GeospatialCoverage getGeospatialCoverage()
-
getServiceNameDefault
public String getServiceNameDefault()
-
getServiceDefault
public Service getServiceDefault()
-
getRestrictAccess
public String getRestrictAccess()
-
getTimeCoverage
public DateRange getTimeCoverage()
-
getVariableMapLink
public ThreddsMetadata.UriResolved getVariableMapLink()
-
getCreators
public List<ThreddsMetadata.Source> getCreators()
-
getContributors
public List<ThreddsMetadata.Contributor> getContributors()
-
getDocumentation
public List<Documentation> getDocumentation()
-
getKeywords
public List<ThreddsMetadata.Vocab> getKeywords()
-
getMetadataOther
public List<ThreddsMetadata.MetadataOther> getMetadataOther()
-
getMetadata
public List<ThreddsMetadata.MetadataOther> getMetadata(String want)
-
getProjects
public List<ThreddsMetadata.Vocab> getProjects()
-
hasProperty
public boolean hasProperty(Property want)
-
hasProperty
public boolean hasProperty(String name)
-
getPublishers
public List<ThreddsMetadata.Source> getPublishers()
-
getVariables
public List<ThreddsMetadata.VariableGroup> getVariables()
-
getHistory
public String getHistory()
- Returns:
- specific type of documentation = history
-
getProcessing
public String getProcessing()
- Returns:
- specific type of documentation = processing_level
-
getRights
public String getRights()
- Returns:
- specific type of documentation = rights
-
getSummary
public String getSummary()
- Returns:
- specific type of documentation = summary
-
getLastModifiedDate
public DateType getLastModifiedDate()
-
-