|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.NodeImpl | +--org.apache.xerces.dom.ChildNode | +--org.apache.xerces.dom.ParentNode | +--org.apache.xerces.dom.CoreDocumentImpl | +--org.apache.xerces.dom.DocumentImpl | +--org.enhydra.xml.xmlc.metadata.MetaDataDocument
Metadata XML document associated with a Document being parsed. Data maybe set from the command line or read from an XML file (or both).
Field Summary | |
static java.lang.String |
DOC_TYPE_NAME
Document type name |
static java.lang.String |
METADATA_FILE_EXTENSION
Extension for XMLC metadata files. |
static java.lang.String |
PUBLIC_ID
Public id for created metadata files |
static java.lang.String |
SYSTEM_ID
System id for created metadata files |
Fields inherited from class org.apache.xerces.dom.DocumentImpl |
eventListeners, iterators, mutationEvents, ranges, userData |
Fields inherited from class org.apache.xerces.dom.CoreDocumentImpl |
allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, identifiers, kidOK, standalone, version |
Fields inherited from class org.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
MetaDataDocument()
Construct an empty instace of a metadata document. |
Method Summary | |
void |
completeModifications()
Complete modifications to DOM. |
Element |
createElement(java.lang.Class elementClass)
Create a XMLC metadata document given its class. |
Element |
createElement(java.lang.String tagName)
Create a XMLC metadata document element. |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create a XMLC metadata document element. |
MetaData |
getMetaData()
Get the root MetaData object, which must exist. |
void |
merge(MetaDataDocument srcDocument)
Merge another MetaData document into this document. |
static MetaDataDocument |
newInstance()
Create a new, uninitialized document. |
static MetaDataDocument |
parseMetaData(InputSource inputSource,
ErrorReporter reporter,
java.lang.ClassLoader classLoader)
Parse a XMLC metadata file. |
void |
serialize()
Serialize this object to a XML file using the default name. |
void |
serialize(java.io.File file)
Serialize this object to a XML file. |
Methods inherited from class org.apache.xerces.dom.DocumentImpl |
addEventListener, cloneNode, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, getEventListeners, getImplementation, getUserData, removeEventListener, saveEnclosingAttr, setEventListeners, setUserData |
Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, item, normalize, setReadOnly, synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, dispatchEvent, getAttributes, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, hasAttributes, isSupported, removeEventListener, setNodeValue, setPrefix, setUserData, synchronizeData, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, isSupported, normalize, setNodeValue, setPrefix |
Field Detail |
public static final java.lang.String DOC_TYPE_NAME
public static final java.lang.String PUBLIC_ID
public static final java.lang.String SYSTEM_ID
public static final java.lang.String METADATA_FILE_EXTENSION
Constructor Detail |
public MetaDataDocument()
Method Detail |
public static MetaDataDocument parseMetaData(InputSource inputSource, ErrorReporter reporter, java.lang.ClassLoader classLoader) throws XMLCException
inputSource
- Specification of file to parse.reporter
- Object use to report errors.classLoader
- If not null, class loader to use in resolving
entities to be found on the classpath.
XMLCException
public static MetaDataDocument newInstance()
public void serialize(java.io.File file) throws XMLCException
XMLCException
public void serialize() throws XMLCException
XMLCException
public MetaData getMetaData()
public Element createElement(java.lang.Class elementClass)
public Element createElement(java.lang.String tagName) throws DOMException
createElement
in interface Document
createElement
in class CoreDocumentImpl
tagName
- The name of the element type to instantiate. For
XML, this is case-sensitive. For HTML, the tagName parameter may
be provided in any case, but it must be mapped to the canonical
uppercase form by the DOM implementation.
DOMException
public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
createElementNS
in interface Document
createElementNS
in class CoreDocumentImpl
namespaceURI
- The namespace URI of the element to
create.qualifiedName
- The qualified name of the element type to
instantiate.
public void completeModifications() throws XMLCException
XMLCException
public void merge(MetaDataDocument srcDocument)
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |