public class InvMetadata
extends java.lang.Object
for public interface
Constructor and Description |
---|
InvMetadata(InvDataset dataset,
boolean inherited,
ThreddsMetadata tm)
Constructor using an existing ThreddsMetadata object.
|
InvMetadata(InvDataset dataset,
java.lang.String mtype,
java.lang.String namespaceURI,
java.lang.String namespacePrefix,
boolean inherited,
boolean isThreddsMetadata,
MetadataConverterIF converter,
java.lang.Object contentObject)
Constructor for elements with inline content.
|
InvMetadata(InvDataset dataset,
java.lang.String xlinkHref,
java.lang.String title,
java.lang.String type,
java.lang.String namespaceURI,
java.lang.String prefix,
boolean inherited,
boolean isThreddsMetadata,
MetadataConverterIF converter)
Constructor for elements with Xlinks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
InvMetadata elements with same values are equal.
|
void |
finish()
Finish getting the metadata if necessary.
|
java.lang.Object |
getContentObject()
get the content object, may be null
|
MetadataConverterIF |
getConverter()
Get the converter; may be null.
|
java.lang.String |
getMetadataType()
Get the metadata type.
|
java.lang.String |
getNamespacePrefix()
Get the prefix mapped to the namespace.
|
java.lang.String |
getNamespaceURI()
Get the namespace.
|
InvDataset |
getParentDataset()
Get the parent dataset of this InvMetadata
|
ThreddsMetadata |
getThreddsMetadata()
get the internal ThreddsMetadata, if isThreddsMetadata() is true
|
java.lang.String |
getXlinkHref()
if its a XLink, get the xlink:href String
|
java.lang.String |
getXlinkTitle()
if its a XLink, get the xlink:title attribute
|
java.net.URI |
getXlinkURI()
if its a XLink, get the xlink:href as an absolute URI; may be null
|
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
hasXlink()
if it has an XLink
|
boolean |
isInherited()
if it is inherited
|
boolean |
isThreddsMetadata()
if this element contains ThreddsMetadata
|
void |
setNamespaceURI(java.lang.String namespaceURI)
set the namespace URI
|
void |
setThreddsMetadata(boolean isThreddsMetadata)
set if this element contains ThreddsMetadata
|
void |
setThreddsMetadata(ThreddsMetadata tmd)
set the internal ThreddsMetadata; this holds elements from THREDDS namespace
|
public InvMetadata(InvDataset dataset, java.lang.String xlinkHref, java.lang.String title, java.lang.String type, java.lang.String namespaceURI, java.lang.String prefix, boolean inherited, boolean isThreddsMetadata, MetadataConverterIF converter)
dataset
- : dataset that contains the metadata.xlinkHref
- : URI of xlink, may be null.title
- : xlink title, may be null.type
- : metadata typenamespaceURI
- : namespace URI string of the element, use null for THREDDSprefix
- : namespace prefix of the element, use null for THREDDSinherited
- : if inheritedisThreddsMetadata
- : is threddsMetadataconverter
- : converter for creating the content object, may be nullpublic InvMetadata(InvDataset dataset, java.lang.String mtype, java.lang.String namespaceURI, java.lang.String namespacePrefix, boolean inherited, boolean isThreddsMetadata, MetadataConverterIF converter, java.lang.Object contentObject)
dataset
- : dataset that contains the metadata.mtype
- : metadata typenamespaceURI
- : namespace URI string of the element, can use null for THREDDSnamespacePrefix
- : namespace prefix of the element, use null for THREDDSinherited
- : if inheritedisThreddsMetadata
- : is threddsMetadataconverter
- : the metadata converter.contentObject
- : content object.public InvMetadata(InvDataset dataset, boolean inherited, ThreddsMetadata tm)
dataset
- : dataset that contains the metadata.inherited
- : if inheritedtm
- : content object.public InvDataset getParentDataset()
public MetadataConverterIF getConverter()
public java.lang.String getMetadataType()
public java.lang.String getNamespaceURI()
public java.lang.String getNamespacePrefix()
public boolean hasXlink()
public java.lang.String getXlinkHref()
public java.net.URI getXlinkURI()
public java.lang.String getXlinkTitle()
public boolean isInherited()
public boolean isThreddsMetadata()
public void setThreddsMetadata(boolean isThreddsMetadata)
isThreddsMetadata
- true if this element contains ThreddsMetadatapublic void setNamespaceURI(java.lang.String namespaceURI)
namespaceURI
- set the namespace URIpublic java.lang.Object getContentObject()
public void setThreddsMetadata(ThreddsMetadata tmd)
tmd
- the internal ThreddsMetadata objectpublic ThreddsMetadata getThreddsMetadata()
public void finish()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object