public class CatGenConfigMetadataFactory extends java.lang.Object implements MetadataConverterIF
Title: Catalog Generator
Description: Tool for generating THREDDS catalogs.
Copyright: Copyright (c) 2001
Company: UCAR/Unidata
Constructor and Description |
---|
CatGenConfigMetadataFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addMetadataContent(org.jdom2.Element mdataJdomElement,
java.lang.Object contentObject)
Serialize the InvMetadata content object to a org.w3c.dom.Element
|
java.lang.Object |
readMetadataContent(InvDataset dataset,
org.jdom2.Element mdataElement)
Create an InvMetadata content object from an org.w3c.dom.Element.
|
java.lang.Object |
readMetadataContentFromURL(InvDataset dataset,
java.net.URI uri)
Create an InvMetadata content object from an XML document at a named URL.
|
boolean |
validateMetadataContent(java.lang.Object contentObject,
java.lang.StringBuilder out)
Validate the content object.
|
public java.lang.Object readMetadataContent(InvDataset dataset, org.jdom2.Element mdataElement)
readMetadataContent
in interface MetadataConverterIF
dataset
- - the containing datasetmdataElement
- - the metadata element as an org.w3c.dom.Elementpublic java.lang.Object readMetadataContentFromURL(InvDataset dataset, java.net.URI uri) throws java.io.IOException
MetadataConverterIF
readMetadataContentFromURL
in interface MetadataConverterIF
dataset
- : the containing dataseturi
- : the URI that the XML doc is at.java.io.IOException
- on read errorpublic void addMetadataContent(org.jdom2.Element mdataJdomElement, java.lang.Object contentObject)
addMetadataContent
in interface MetadataConverterIF
mdataJdomElement
- - add content to this org.w3c.dom.ElementcontentObject
- - the content modelpublic boolean validateMetadataContent(java.lang.Object contentObject, java.lang.StringBuilder out)
validateMetadataContent
in interface MetadataConverterIF
contentObject
- : the content objectout
- : print errors here