public class InvMetadata extends Object
for public interface
Constructor and Description |
---|
InvMetadata(InvDataset dataset,
boolean inherited,
ThreddsMetadata tm)
Constructor using an existing ThreddsMetadata object.
|
InvMetadata(InvDataset dataset,
String mtype,
String namespaceURI,
String namespacePrefix,
boolean inherited,
boolean isThreddsMetadata,
MetadataConverterIF converter,
Object contentObject)
Constructor for elements with inline content.
|
InvMetadata(InvDataset dataset,
String xlinkHref,
String title,
String type,
String namespaceURI,
String prefix,
boolean inherited,
boolean isThreddsMetadata,
MetadataConverterIF converter)
Constructor for elements with Xlinks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
InvMetadata elements with same values are equal.
|
void |
finish()
Finish getting the metadata if necessary.
|
Object |
getContentObject()
get the content object, may be null
|
MetadataConverterIF |
getConverter()
Get the converter; may be null.
|
String |
getMetadataType()
Get the metadata type.
|
String |
getNamespacePrefix()
Get the prefix mapped to the namespace.
|
String |
getNamespaceURI()
Get the namespace.
|
InvDataset |
getParentDataset()
Get the parent dataset of this InvMetadata
|
ThreddsMetadata |
getThreddsMetadata()
get the internal ThreddsMetadata, if isThreddsMetadata() is true
|
String |
getXlinkHref()
if its a XLink, get the xlink:href String
|
String |
getXlinkTitle()
if its a XLink, get the xlink:title attribute
|
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(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, String xlinkHref, String title, String type, String namespaceURI, 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, String mtype, String namespaceURI, String namespacePrefix, boolean inherited, boolean isThreddsMetadata, MetadataConverterIF converter, 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 String getMetadataType()
public String getNamespaceURI()
public String getNamespacePrefix()
public boolean hasXlink()
public String getXlinkHref()
public URI getXlinkURI()
public String getXlinkTitle()
public boolean isInherited()
public boolean isThreddsMetadata()
public void setThreddsMetadata(boolean isThreddsMetadata)
isThreddsMetadata
- true if this element contains ThreddsMetadatapublic void setNamespaceURI(String namespaceURI)
namespaceURI
- set the namespace URIpublic Object getContentObject()
public void setThreddsMetadata(ThreddsMetadata tmd)
tmd
- the internal ThreddsMetadata objectpublic ThreddsMetadata getThreddsMetadata()
public void finish()
public boolean equals(Object o)
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.