|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openadaptor.doconverter.XMLReader
org.openadaptor.doconverter.AbstractMetadataParser
public abstract class AbstractMetadataParser
An abstract base class for metadata parsers. Provides some convenience methods for parsers; a getName() (you must provide a getVersion()) and static methods which provide a source of XML start and end tags for the metadata sections, etc.
NDCDMetadataParser
Field Summary | |
---|---|
protected java.lang.String |
_NAME
The (cached) MetadataParser name |
(package private) static org.apache.log4j.Logger |
log
|
static java.lang.String |
TYPE_ATTR
DataObject metadata type attribute name |
static java.lang.String |
VERSION_ATTR
DataObject metadata version attribute name |
Constructor Summary | |
---|---|
AbstractMetadataParser()
|
Method Summary | |
---|---|
protected static XTag |
getMetadataEndTag()
Returns the standard metadata end tag. |
java.lang.String |
getName()
Returns a string representing the metadata parser name. |
static XTag |
getNewMetadataStartTag()
Returns a new Metadata version tag, for use by MetadataGenerators Returns an XTag representing
- the caller can fill in the attribute values and write it to a stream |
abstract java.lang.String |
getVersion()
Subclasses must return a version string here |
Methods inherited from class org.openadaptor.doconverter.XMLReader |
---|
matchComment, matchEndTagNamed, matchTag, matchTagExactly, nextTag, nextXMLElement, xmlParsingFailed, xmlParsingFailed, xmlParsingFailedExpecting, xmlParsingFailedExpecting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openadaptor.doconverter.MetadataParser |
---|
canHandle, typesFromParser |
Field Detail |
---|
static org.apache.log4j.Logger log
public static final java.lang.String VERSION_ATTR
public static final java.lang.String TYPE_ATTR
protected java.lang.String _NAME
Constructor Detail |
---|
public AbstractMetadataParser()
Method Detail |
---|
public static XTag getNewMetadataStartTag()
- the caller can fill in the attribute values and write it to a stream
protected static XTag getMetadataEndTag()
. The user will not need to
(must not!) alter this.
public java.lang.String getName()
getName
in interface MetadataParser
MetadataGenerator.getName()
public abstract java.lang.String getVersion()
getVersion
in interface MetadataParser
MetadataGenerator.getVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |