public class InvCatalogRef extends InvDatasetImpl
Parent relationship: ds -> catRef -- catalog ^ top -> ds ... ParentView relationship: ds -> catRef -> top -> ds ... (or) -> ds if UseProxy
log, mark, ncmlElement, tm, tmi
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 and Description |
---|
InvCatalogRef(InvDatasetImpl parent,
java.lang.String name,
java.lang.String href)
Constructor.
|
InvCatalogRef(InvDatasetImpl parent,
java.lang.String name,
java.lang.String href,
java.lang.Boolean useRemoteCatalogService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
InvDatasetImpl elements with same values are equal.
|
InvDatasetImpl |
findDatasetByName(java.lang.String p0)
Find an immediate child dataset by its name.
|
java.lang.String |
findProperty(java.lang.String p0)
Finds the first property declared in the dataset with the given name.
|
InvService |
findService(java.lang.String p0)
Find the named service declared in this dataset or one of its parents.
|
boolean |
finish()
Finish constructing after all elements have been added.
|
java.util.List<InvAccess> |
getAccess()
Get all access elements for this dataset.
|
InvAccess |
getAccess(ServiceType p0)
Get access element of the specified service type for this dataset.
|
java.lang.String |
getAlias() |
java.lang.String |
getAuthority()
Get authority for this Dataset, may be null.
|
CalendarDateRange |
getCalendarDateCoverage()
get time coverage as CalendarDateRange
|
CollectionType |
getCollectionType()
Get collectionType
|
java.util.List<ThreddsMetadata.Contributor> |
getContributors()
get Contributor metadata
|
java.util.List<ThreddsMetadata.Source> |
getCreators()
get any Creator metadata
|
DataFormatType |
getDataFormatType()
Get the DataFormatType (which may be inherited from parent), or null .
|
java.util.List<InvDataset> |
getDatasets()
Get a list of all the nested datasets.
|
FeatureType |
getDataType()
Get the DataType (which may be inherited from parent), or null .
|
java.util.List<DateType> |
getDates()
get any DateType metadata
|
java.util.List<InvDocumentation> |
getDocumentation()
Get list of documentation elements for this dataset.
|
java.lang.String |
getDocumentation(java.lang.String p0)
get specific type of documentation
|
java.lang.String |
getFullName()
Get the full, heirarchical name of the dataset, which has all parent collection names.
|
ThreddsMetadata.GeospatialCoverage |
getGeospatialCoverage()
get geospatial coverage
|
java.lang.String |
getID()
Get the id of the dataset, or null.
|
java.util.List<ThreddsMetadata.Vocab> |
getKeywords()
get any Keyword metadata
|
protected boolean |
getMark()
Filtering
|
java.util.List<InvMetadata> |
getMetadata()
Get the metadata elements for this InvDataset.
|
java.util.List<InvMetadata> |
getMetadata(MetadataType p0)
Get the metadata elements of the specified type.
|
java.lang.String |
getName()
Get the "human readable" name of the dataset.
|
InvDataset |
getParent()
Get parent dataset.
|
java.util.List<ThreddsMetadata.Vocab> |
getProjects()
get Projects metadata
|
java.util.List<InvProperty> |
getProperties()
Get all properties for this dataset.
|
InvDatasetImpl |
getProxyDataset()
This triggers a read of the referenced catalog the first time its called.
|
java.util.List<ThreddsMetadata.Source> |
getPublishers()
get Publisher metadata
|
InvService |
getServiceDefault()
Find the default service for this dataset and its children.
|
java.lang.String |
getUniqueID()
If this dataset has an authority and an ID, then the concatenation of them is the
globally unique ID.
|
java.net.URI |
getURI() |
java.lang.String |
getUrlPath()
Get urlPath for this Dataset
|
java.lang.Object |
getUserProperty(java.lang.Object p0)
Look up the User property having the given key
|
java.lang.String |
getVariableMapLink() |
java.util.List<ThreddsMetadata.Variables> |
getVariables()
get Variable metadata
|
java.lang.String |
getXlinkHref() |
boolean |
hasAccess()
If this dataset has access elements.
|
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
hasNestedDatasets()
If this dataset has nested datasets.
|
boolean |
isHarvest() |
boolean |
isRead() |
void |
readAsynch(InvCatalogFactory factory,
CatalogSetCallback caller)
Read the referenced catalog asynchronously, if the catalog factory supports it.
|
void |
release()
Release resources - undo the read of the catalog.
|
void |
setXlinkHref(java.lang.String href) |
java.lang.Boolean |
useRemoteCatalogService() |
addAccess, addAccess, addDataset, addDataset, addDocumentation, addProperty, addService, canonicalize, dump, getAccessLocal, getDataSize, getLastModifiedDate, getLocalMetadata, getLocalMetadataInheritable, getNcmlElement, getParentReal, getServiceName, getServicesLocal, removeDataset, removeLocalMetadata, removeService, replaceDataset, resolve, setAlias, setAuthority, setCatalog, setCollectionType, setContributors, setDataFormatType, setDataSize, setDataType, setGeospatialCoverage, setHarvest, setID, setKeywords, setLastModifiedDate, setLastModifiedDate, setLocalMetadata, setMark, setName, setNcmlElement, setParent, setProjects, setPublishers, setResourceControl, setServiceName, setServicesLocal, setTimeCoverage, setTimeCoverage, setUrlPath, setUserProperty, toString, transferMetadata, writeHtmlDescription, writeHtmlDescription
findAccess, getCatalogUrl, getHistory, getParentCatalog, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getTimeCoverage, getVariables
public InvCatalogRef(InvDatasetImpl parent, java.lang.String name, java.lang.String href)
parent
- : parent datasetname
- : display name of collectionhref
- : URL to another catalogpublic InvCatalogRef(InvDatasetImpl parent, java.lang.String name, java.lang.String href, java.lang.Boolean useRemoteCatalogService)
parent
- : parent datasetname
- : display name of collectionhref
- : URL to another cataloguseRemoteCatalogService
- : force catalogRef to go through the remoteCatalogServicepublic java.lang.Boolean useRemoteCatalogService()
public java.lang.String getXlinkHref()
public void setXlinkHref(java.lang.String href)
public java.net.URI getURI()
public java.util.List<InvDataset> getDatasets()
getDatasets
in class InvDataset
public boolean isRead()
public InvDatasetImpl getProxyDataset()
public void release()
public boolean finish()
InvDatasetImpl
finish
in class InvDatasetImpl
public void readAsynch(InvCatalogFactory factory, CatalogSetCallback caller)
factory
- : use this catalog factorycaller
- when catalog is readCatalogSetCallback
public boolean equals(java.lang.Object o)
InvDatasetImpl
equals
in class InvDatasetImpl
public int hashCode()
InvDatasetImpl
hashCode
in class InvDatasetImpl
public InvDatasetImpl findDatasetByName(java.lang.String p0)
InvDataset
findDatasetByName
in class InvDataset
p0
- match on this namepublic java.lang.String findProperty(java.lang.String p0)
InvDataset
InvDataset.getProperties()
.
The property may have been specified in the dataset or in an enclosing parent element.
findProperty
in class InvDataset
p0
- the name of the property.null
if no such property exists.public InvService findService(java.lang.String p0)
InvDataset
findService
in class InvDataset
p0
- match this namepublic InvAccess getAccess(ServiceType p0)
InvDataset
getAccess
in class InvDataset
p0
- find this ServiceTypepublic java.util.List<InvAccess> getAccess()
InvDataset
getAccess
in class InvDataset
public java.lang.String getAlias()
getAlias
in class InvDatasetImpl
public java.lang.String getAuthority()
InvDataset
getAuthority
in class InvDataset
public CollectionType getCollectionType()
InvDataset
getCollectionType
in class InvDataset
public java.util.List<ThreddsMetadata.Contributor> getContributors()
InvDataset
getContributors
in class InvDataset
public java.util.List<ThreddsMetadata.Source> getCreators()
InvDataset
getCreators
in class InvDataset
public DataFormatType getDataFormatType()
InvDataset
getDataFormatType
in class InvDataset
public FeatureType getDataType()
InvDataset
getDataType
in class InvDataset
public java.util.List<DateType> getDates()
InvDataset
getDates
in class InvDataset
public java.util.List<InvDocumentation> getDocumentation()
InvDataset
getDocumentation
in class InvDataset
public java.lang.String getDocumentation(java.lang.String p0)
InvDataset
getDocumentation
in class InvDataset
p0
- find this type of documentationpublic java.lang.String getFullName()
InvDataset
getFullName
in class InvDataset
public ThreddsMetadata.GeospatialCoverage getGeospatialCoverage()
InvDataset
getGeospatialCoverage
in class InvDataset
public java.lang.String getID()
InvDataset
getID
in class InvDataset
public java.util.List<ThreddsMetadata.Vocab> getKeywords()
InvDataset
getKeywords
in class InvDataset
protected boolean getMark()
InvDatasetImpl
getMark
in class InvDatasetImpl
public java.util.List<InvMetadata> getMetadata(MetadataType p0)
InvDataset
getMetadata
in class InvDataset
p0
- find this metadata typepublic java.util.List<InvMetadata> getMetadata()
InvDataset
getMetadata
in class InvDataset
public java.lang.String getName()
InvDataset
getName
in class InvDataset
public InvDataset getParent()
InvDataset
getParent
in class InvDataset
public java.util.List<ThreddsMetadata.Vocab> getProjects()
InvDataset
getProjects
in class InvDataset
public java.util.List<InvProperty> getProperties()
InvDataset
getProperties
in class InvDataset
public java.util.List<ThreddsMetadata.Source> getPublishers()
InvDataset
getPublishers
in class InvDataset
public InvService getServiceDefault()
InvDataset
getServiceDefault
in class InvDataset
public CalendarDateRange getCalendarDateCoverage()
InvDataset
getCalendarDateCoverage
in class InvDataset
public java.lang.String getUniqueID()
InvDataset
getUniqueID
in class InvDataset
public java.lang.String getUrlPath()
InvDatasetImpl
getUrlPath
in class InvDatasetImpl
public java.lang.Object getUserProperty(java.lang.Object p0)
InvDatasetImpl
getUserProperty
in class InvDatasetImpl
p0
- property keypublic java.util.List<ThreddsMetadata.Variables> getVariables()
InvDataset
getVariables
in class InvDataset
public java.lang.String getVariableMapLink()
getVariableMapLink
in class InvDataset
public boolean hasAccess()
InvDataset
hasAccess
in class InvDataset
public boolean hasNestedDatasets()
InvDataset
hasNestedDatasets
in class InvDataset
public boolean isHarvest()
isHarvest
in class InvDataset