public class ThreddsMetadata
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreddsMetadata.Contributor
Implements Contributor type.
|
static class |
ThreddsMetadata.GeospatialCoverage
Implements GeospatialCoverage type.
|
static class |
ThreddsMetadata.Range
Implements spatialRange type.
|
static class |
ThreddsMetadata.Source
Implements Source type, used by publisher and creator elements.
|
static class |
ThreddsMetadata.Variable
Implements Variable type.
|
static class |
ThreddsMetadata.Variables
Implements Variables type.
|
static class |
ThreddsMetadata.Vocab
Implements Vocab type, just text with an optional "vocabulary" attribute.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
authorityName |
protected java.util.List<ThreddsMetadata.Contributor> |
contributors |
protected java.util.List<ThreddsMetadata.Source> |
creators |
protected DataFormatType |
dataFormat |
protected double |
dataSize |
protected FeatureType |
dataType |
protected java.util.List<DateType> |
dates |
protected java.util.List<InvDocumentation> |
docs |
protected ThreddsMetadata.GeospatialCoverage |
gc |
protected boolean |
inherited |
protected java.util.List<ThreddsMetadata.Vocab> |
keywords |
protected java.util.List<InvMetadata> |
metadata |
protected java.util.List<ThreddsMetadata.Vocab> |
projects |
protected java.util.List<InvProperty> |
properties |
protected java.util.List<ThreddsMetadata.Source> |
publishers |
protected java.lang.String |
serviceName |
protected DateRange |
timeCoverage |
protected java.util.List<ThreddsMetadata.Variables> |
variables |
| Constructor and Description |
|---|
ThreddsMetadata(boolean inherited) |
ThreddsMetadata(ThreddsMetadata from)
Copy Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ThreddsMetadata tmd,
boolean includeInherited)
Add all the content from another ThreddsMetadata
|
void |
addContributor(ThreddsMetadata.Contributor c)
Add a contributor
|
void |
addCreator(ThreddsMetadata.Source c)
Add a creator
|
void |
addDate(DateType d)
Add a date
|
void |
addDocumentation(InvDocumentation d)
Add a documentation
|
void |
addDocumentation(java.lang.String type,
java.lang.String content)
set specified type of documentation
|
void |
addKeyword(ThreddsMetadata.Vocab keyword)
Add a keyword
|
void |
addMetadata(InvMetadata m)
Add InvMetadata
|
void |
addProject(ThreddsMetadata.Vocab project)
Add a project
|
void |
addProperty(InvProperty p)
Add a property
|
void |
addPublisher(ThreddsMetadata.Source p)
Add a publisher
|
void |
addVariables(ThreddsMetadata.Variables vs)
Add variables
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAuthority() |
java.util.List<ThreddsMetadata.Contributor> |
getContributors() |
java.util.List<ThreddsMetadata.Source> |
getCreators() |
DataFormatType |
getDataFormatType() |
double |
getDataSize() |
FeatureType |
getDataType() |
java.util.List<DateType> |
getDates() |
java.util.List<InvDocumentation> |
getDocumentation() |
java.lang.String |
getDocumentation(java.lang.String type) |
ThreddsMetadata.GeospatialCoverage |
getGeospatialCoverage() |
java.lang.String |
getHistory() |
java.util.List<ThreddsMetadata.Vocab> |
getKeywords() |
java.util.List<InvMetadata> |
getMetadata() |
java.lang.String |
getProcessing() |
java.util.List<ThreddsMetadata.Vocab> |
getProjects() |
java.util.List<InvProperty> |
getProperties() |
java.util.List<ThreddsMetadata.Source> |
getPublishers() |
java.lang.String |
getRights() |
java.lang.String |
getServiceName() |
java.lang.String |
getSummary() |
DateRange |
getTimeCoverage() |
java.util.List<ThreddsMetadata.Variables> |
getVariables() |
boolean |
hasDataSize() |
int |
hashCode() |
boolean |
isInherited() |
static void |
main(java.lang.String[] args)
********************************************************************
|
void |
removeDocumentation(java.lang.String type)
remove all instances of specified type of documentation
|
void |
removeMetadata(InvMetadata m)
remove an InvMetadata element from list, using equals() to locate it.
|
void |
setAuthority(java.lang.String authorityName)
Set authority
|
void |
setContributors(java.util.List<ThreddsMetadata.Contributor> contributors)
Set list of contributors (type Contributor); may be empty, not null.
|
void |
setCreators(java.util.List<ThreddsMetadata.Source> creators)
Set list of creators (type Source); may be empty, not null.
|
void |
setDataFormatType(DataFormatType dataFormat)
Set dataTypeFormat
|
void |
setDataSize(double size)
Set size (bytes)
|
void |
setDataType(FeatureType dataType)
Set dataType
|
void |
setGeospatialCoverage(ThreddsMetadata.GeospatialCoverage gc)
set GeospatialCoverage element
|
void |
setHistory(java.lang.String history)
set specific type of documentation = history
|
void |
setInherited(boolean inherited)
Set inherited
|
void |
setKeywords(java.util.List<ThreddsMetadata.Vocab> keywords)
Set list of contributors; may be empty, not null.
|
void |
setProcessing(java.lang.String processing)
set specific type of documentation = processing_level
|
void |
setProjects(java.util.List<ThreddsMetadata.Vocab> projects)
Set list of projects (type Vocab); may be empty, not null.
|
void |
setPublishers(java.util.List<ThreddsMetadata.Source> publishers)
Set list of publishers (type Source); may be empty, not null.
|
void |
setRights(java.lang.String rights)
set specific type of documentation = rights
|
void |
setServiceName(java.lang.String serviceName)
Set serviceName
|
void |
setSummary(java.lang.String summary)
set specific type of documentation = summary
|
void |
setTimeCoverage(DateRange tc)
set TimeCoverage element
|
protected boolean inherited
protected java.util.List<ThreddsMetadata.Source> creators
protected java.util.List<ThreddsMetadata.Contributor> contributors
protected java.util.List<DateType> dates
protected java.util.List<InvDocumentation> docs
protected java.util.List<ThreddsMetadata.Vocab> keywords
protected java.util.List<InvMetadata> metadata
protected java.util.List<ThreddsMetadata.Vocab> projects
protected java.util.List<InvProperty> properties
protected java.util.List<ThreddsMetadata.Source> publishers
protected java.util.List<ThreddsMetadata.Variables> variables
protected ThreddsMetadata.GeospatialCoverage gc
protected DateRange timeCoverage
protected java.lang.String authorityName
protected java.lang.String serviceName
protected FeatureType dataType
protected DataFormatType dataFormat
protected double dataSize
public ThreddsMetadata(boolean inherited)
public ThreddsMetadata(ThreddsMetadata from)
from - copy from herepublic void add(ThreddsMetadata tmd, boolean includeInherited)
tmd - get content from hereincludeInherited - if false, dont add inherited InvMetadatapublic void addCreator(ThreddsMetadata.Source c)
c - add thispublic java.util.List<ThreddsMetadata.Source> getCreators()
public void setCreators(java.util.List<ThreddsMetadata.Source> creators)
creators - set creators to this listpublic void addContributor(ThreddsMetadata.Contributor c)
c - add thispublic java.util.List<ThreddsMetadata.Contributor> getContributors()
public void setContributors(java.util.List<ThreddsMetadata.Contributor> contributors)
contributors - set contributers to thispublic void addDate(DateType d)
d - add this dateTypepublic java.util.List<DateType> getDates()
public void addDocumentation(InvDocumentation d)
d - add thispublic java.util.List<InvDocumentation> getDocumentation()
public void addKeyword(ThreddsMetadata.Vocab keyword)
keyword - add thispublic java.util.List<ThreddsMetadata.Vocab> getKeywords()
public void setKeywords(java.util.List<ThreddsMetadata.Vocab> keywords)
keywords - set list of keywords to thispublic void addMetadata(InvMetadata m)
m - add thispublic void removeMetadata(InvMetadata m)
m - remove thispublic java.util.List<InvMetadata> getMetadata()
public void addProject(ThreddsMetadata.Vocab project)
project - add thispublic java.util.List<ThreddsMetadata.Vocab> getProjects()
public void setProjects(java.util.List<ThreddsMetadata.Vocab> projects)
projects - set list of projects to thispublic void addProperty(InvProperty p)
p - add thispublic java.util.List<InvProperty> getProperties()
public void addPublisher(ThreddsMetadata.Source p)
p - add thispublic java.util.List<ThreddsMetadata.Source> getPublishers()
public void setPublishers(java.util.List<ThreddsMetadata.Source> publishers)
publishers - set list of publishers to thispublic void addVariables(ThreddsMetadata.Variables vs)
vs - add thispublic java.util.List<ThreddsMetadata.Variables> getVariables()
public void setGeospatialCoverage(ThreddsMetadata.GeospatialCoverage gc)
gc - set GeospatialCoverage to thispublic ThreddsMetadata.GeospatialCoverage getGeospatialCoverage()
public void setTimeCoverage(DateRange tc)
tc - set TimeCoverage to thispublic DateRange getTimeCoverage()
public boolean isInherited()
public void setInherited(boolean inherited)
inherited - set true if inheritedpublic java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
serviceName - set service name to this, must be valid servicepublic FeatureType getDataType()
public void setDataType(FeatureType dataType)
dataType - set to this dataTypepublic DataFormatType getDataFormatType()
public void setDataFormatType(DataFormatType dataFormat)
dataFormat - set to this dataTypeFormatpublic java.lang.String getAuthority()
public void setAuthority(java.lang.String authorityName)
authorityName - set to thispublic java.lang.String getDocumentation(java.lang.String type)
type - match on doc.getType()public java.lang.String getHistory()
public void setHistory(java.lang.String history)
history - add (or replace) the history documentation element to this contentpublic java.lang.String getProcessing()
public void setProcessing(java.lang.String processing)
processing - add (or replace) the history documentation element to this contentpublic java.lang.String getRights()
public void setRights(java.lang.String rights)
rights - add (or replace) the history documentation element to this contentpublic java.lang.String getSummary()
public void setSummary(java.lang.String summary)
summary - add (or replace) the history documentation element to this contentpublic double getDataSize()
public void setDataSize(double size)
size - the data size in bytes. A value of 0.0 or NaN means not set.public boolean hasDataSize()
public void addDocumentation(java.lang.String type,
java.lang.String content)
type - type of documentationcontent - documentation contenetpublic void removeDocumentation(java.lang.String type)
type - type of documentationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException