Package thredds.catalog
Interface MetadataConverterIF
-
- All Known Implementing Classes:
CatGenConfigMetadataFactory
,InvCatalogFactory10
public interface MetadataConverterIF
Converts JDOM Element to Objects holding metadata content.- See Also:
InvCatalogConvertIF
,InvCatalogFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMetadataContent(org.jdom2.Element mdataElement, Object contentObject)
Serialize the InvMetadata content object to a org.jdom2.Element and add ro theelement. Object
readMetadataContent(InvDataset dataset, org.jdom2.Element mdataElement)
Create an InvMetadata content object from an org.jdom2.Element.Object
readMetadataContentFromURL(InvDataset dataset, URI uri)
Create an InvMetadata content object from an XML document at a named URL.boolean
validateMetadataContent(Object contentObject, StringBuilder out)
Validate internal data structures.
-
-
-
Method Detail
-
readMetadataContent
Object readMetadataContent(InvDataset dataset, org.jdom2.Element mdataElement)
Create an InvMetadata content object from an org.jdom2.Element.- Parameters:
dataset
- : the containing datasetmdataElement
- : theelement - Returns:
- an object representing the metadata content. The type depends on the metadata handler.
-
readMetadataContentFromURL
Object readMetadataContentFromURL(InvDataset dataset, URI uri) throws IOException
Create an InvMetadata content object from an XML document at a named URL.- Parameters:
dataset
- : the containing dataseturi
- : the URI that the XML doc is at.- Returns:
- an object representing the metadata content. The type depends on the metadata handler.
- Throws:
IOException
- on read error
-
addMetadataContent
void addMetadataContent(org.jdom2.Element mdataElement, Object contentObject)
Serialize the InvMetadata content object to a org.jdom2.Element and add ro theelement. - Parameters:
mdataElement
- : the org.w3c.dom.Element to add tocontentObject
- : the InvMetadata content object
-
validateMetadataContent
boolean validateMetadataContent(Object contentObject, StringBuilder out)
Validate internal data structures.- Parameters:
contentObject
- : the content objectout
- : print errors here- Returns:
- true if no fatal validation errors.
-
-