public class ThreddsMetadata extends 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 String |
authorityName |
protected List<ThreddsMetadata.Contributor> |
contributors |
protected List<ThreddsMetadata.Source> |
creators |
protected DataFormatType |
dataFormat |
protected double |
dataSize |
protected FeatureType |
dataType |
protected List<DateType> |
dates |
protected List<InvDocumentation> |
docs |
protected ThreddsMetadata.GeospatialCoverage |
gc |
protected boolean |
inherited |
protected List<ThreddsMetadata.Vocab> |
keywords |
protected List<InvMetadata> |
metadata |
protected List<ThreddsMetadata.Vocab> |
projects |
protected List<InvProperty> |
properties |
protected List<ThreddsMetadata.Source> |
publishers |
protected String |
serviceName |
protected DateRange |
timeCoverage |
protected String |
variableMapLink |
protected 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(String type,
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 |
addVariableMapLink(String xlinkHref)
Add a variable Map link
|
void |
addVariables(ThreddsMetadata.Variables vs)
Add variables
|
boolean |
equals(Object o) |
String |
getAuthority() |
CalendarDateRange |
getCalendarDateCoverage() |
List<ThreddsMetadata.Contributor> |
getContributors() |
List<ThreddsMetadata.Source> |
getCreators() |
DataFormatType |
getDataFormatType() |
double |
getDataSize() |
FeatureType |
getDataType() |
List<DateType> |
getDates() |
List<InvDocumentation> |
getDocumentation() |
String |
getDocumentation(String type) |
ThreddsMetadata.GeospatialCoverage |
getGeospatialCoverage() |
String |
getHistory() |
List<ThreddsMetadata.Vocab> |
getKeywords() |
List<InvMetadata> |
getMetadata() |
String |
getProcessing() |
List<ThreddsMetadata.Vocab> |
getProjects() |
List<InvProperty> |
getProperties() |
List<ThreddsMetadata.Source> |
getPublishers() |
String |
getRights() |
String |
getServiceName() |
String |
getSummary() |
DateRange |
getTimeCoverage() |
String |
getVariableMap() |
List<ThreddsMetadata.Variables> |
getVariables() |
boolean |
hasDataSize() |
int |
hashCode() |
boolean |
isInherited() |
static void |
main(String[] args)
********************************************************************
|
void |
removeDocumentation(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(String authorityName)
Set authority
|
void |
setContributors(List<ThreddsMetadata.Contributor> contributors)
Set list of contributors (type Contributor); may be empty, not null.
|
void |
setCreators(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(String history)
set specific type of documentation = history
|
void |
setInherited(boolean inherited)
Set inherited
|
void |
setKeywords(List<ThreddsMetadata.Vocab> keywords)
Set list of contributors; may be empty, not null.
|
void |
setProcessing(String processing)
set specific type of documentation = processing_level
|
void |
setProjects(List<ThreddsMetadata.Vocab> projects)
Set list of projects (type Vocab); may be empty, not null.
|
void |
setPublishers(List<ThreddsMetadata.Source> publishers)
Set list of publishers (type Source); may be empty, not null.
|
void |
setRights(String rights)
set specific type of documentation = rights
|
void |
setServiceName(String serviceName)
Set serviceName
|
void |
setSummary(String summary)
set specific type of documentation = summary
|
void |
setTimeCoverage(CalendarDateRange cdc)
set TimeCoverage from a CalendarDateRange
|
void |
setTimeCoverage(DateRange tc)
set TimeCoverage element
|
protected boolean inherited
protected List<ThreddsMetadata.Source> creators
protected List<ThreddsMetadata.Contributor> contributors
protected List<InvDocumentation> docs
protected List<ThreddsMetadata.Vocab> keywords
protected List<InvMetadata> metadata
protected List<ThreddsMetadata.Vocab> projects
protected List<InvProperty> properties
protected List<ThreddsMetadata.Source> publishers
protected List<ThreddsMetadata.Variables> variables
protected String variableMapLink
protected ThreddsMetadata.GeospatialCoverage gc
protected DateRange timeCoverage
protected String authorityName
protected 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 List<ThreddsMetadata.Source> getCreators()
public void setCreators(List<ThreddsMetadata.Source> creators)
creators
- set creators to this listpublic void addContributor(ThreddsMetadata.Contributor c)
c
- add thispublic List<ThreddsMetadata.Contributor> getContributors()
public void setContributors(List<ThreddsMetadata.Contributor> contributors)
contributors
- set contributers to thispublic void addDate(DateType d)
d
- add this dateTypepublic void addDocumentation(InvDocumentation d)
d
- add thispublic List<InvDocumentation> getDocumentation()
public void addKeyword(ThreddsMetadata.Vocab keyword)
keyword
- add thispublic List<ThreddsMetadata.Vocab> getKeywords()
public void setKeywords(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 List<InvMetadata> getMetadata()
public void addProject(ThreddsMetadata.Vocab project)
project
- add thispublic List<ThreddsMetadata.Vocab> getProjects()
public void setProjects(List<ThreddsMetadata.Vocab> projects)
projects
- set list of projects to thispublic void addProperty(InvProperty p)
p
- add thispublic List<InvProperty> getProperties()
public void addPublisher(ThreddsMetadata.Source p)
p
- add thispublic List<ThreddsMetadata.Source> getPublishers()
public void setPublishers(List<ThreddsMetadata.Source> publishers)
publishers
- set list of publishers to thispublic void addVariables(ThreddsMetadata.Variables vs)
vs
- add thispublic List<ThreddsMetadata.Variables> getVariables()
public void addVariableMapLink(String xlinkHref)
xlinkHref
- : URI of xlinkpublic String getVariableMap()
public void setGeospatialCoverage(ThreddsMetadata.GeospatialCoverage gc)
gc
- set GeospatialCoverage to thispublic ThreddsMetadata.GeospatialCoverage getGeospatialCoverage()
public void setTimeCoverage(DateRange tc)
tc
- set TimeCoverage to thispublic void setTimeCoverage(CalendarDateRange cdc)
cdc
- set CalendarDateRange to thispublic DateRange getTimeCoverage()
public CalendarDateRange getCalendarDateCoverage()
public boolean isInherited()
public void setInherited(boolean inherited)
inherited
- set true if inheritedpublic String getServiceName()
public void setServiceName(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 String getAuthority()
public void setAuthority(String authorityName)
authorityName
- set to thispublic String getDocumentation(String type)
type
- match on doc.getType()public String getHistory()
public void setHistory(String history)
history
- add (or replace) the history documentation element to this contentpublic String getProcessing()
public void setProcessing(String processing)
processing
- add (or replace) the history documentation element to this contentpublic String getRights()
public void setRights(String rights)
rights
- add (or replace) the history documentation element to this contentpublic String getSummary()
public void setSummary(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(String type, String content)
type
- type of documentationcontent
- documentation contenetpublic void removeDocumentation(String type)
type
- type of documentationpublic static void main(String[] args) throws IOException
IOException
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.