|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.NodeImpl | +--org.enhydra.apache.xerces.dom.ChildNode | +--org.enhydra.apache.xerces.dom.ParentNode | +--org.enhydra.apache.xerces.dom.CoreDocumentImpl | +--org.enhydra.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).
Inner classes inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
org.enhydra.apache.xerces.dom.DocumentImpl.EnclosingAttr, org.enhydra.apache.xerces.dom.DocumentImpl.LEntry |
Field Summary | |
static String |
DOC_TYPE_NAME
Document type name |
static String |
METADATA_FILE_EXTENSION
Extension for XMLC metadata files. |
static String |
PUBLIC_ID
Public id for created metadata files |
static String |
SYSTEM_ID
System id for created metadata files |
Fields inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
eventListeners, iterators, mutationEvents, ranges, savedEnclosingAttr, serialVersionUID, userData |
Fields inherited from class org.enhydra.apache.xerces.dom.CoreDocumentImpl |
allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, identifiers, kidOK, standalone, version |
Fields inherited from class org.enhydra.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.enhydra.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
Constructor Summary | |
MetaDataDocument()
Construct an empty instace of a metadata document. |
Method Summary | |
(package private) static void |
Static constructor. |
void |
completeModifications()
Complete modifications to DOM. |
Element |
createElement(Class elementClass)
Create a XMLC metadata document given its class. |
Element |
createElement(String tagName)
Create a XMLC metadata document element. |
Element |
createElementNS(String namespaceURI,
String qualifiedName)
Create a XMLC metadata document element. |
MetaData |
getMetaData()
Get the root MetaData object, which must exist. |
File |
getMetadataOutputFile()
Get the name of the metadata output file davidli: this is needed to be public for debugging/logging purpose |
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,
ClassLoader classLoader)
Parse a XMLC metadata file. |
void |
serialize()
Serialize this object to a XML file using the default name. |
void |
serialize(File file)
Serialize this object to a XML file. |
Methods inherited from class org.enhydra.apache.xerces.dom.DocumentImpl |
addEventListener, cloneNode, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, deletedText, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, getEventListeners, getImplementation, getMutationEvents, getUserData, insertedNode, insertedText, insertingNode, modifiedAttrValue, modifiedCharacterData, modifyingCharacterData, removedAttrNode, removedNode, removeEventListener, removeNodeIterator, removeRange, removingNode, replacedNode, replacedText, replacingNode, saveEnclosingAttr, setAttrNode, setEventListeners, setMutationEvents, setUserData, splitData |
Methods inherited from class org.enhydra.apache.xerces.dom.CoreDocumentImpl |
adoptNode, changed, changes, clone, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElementDefinition, createEntity, createEntityReference, createNotation, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getErrorChecking, getIdentifier, getIdentifiers, getInputEncoding, getNodeName, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isKidOK, isXMLName, normalizeDocument, putIdentifier, removeChild, removeIdentifier, renameNode, replaceChild, setDocumentURI, setEncoding, setErrorChecking, setStandalone, setStrictErrorChecking, setVersion, setXmlStandalone, setXmlVersion |
Methods inherited from class org.enhydra.apache.xerces.dom.ParentNode |
checkNormalizationAfterInsert, checkNormalizationAfterRemove, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, internalInsertBefore, internalRemoveChild, item, lastChild, lastChild, normalize, ownerDocument, setOwnerDocument, setReadOnly, synchronizeChildren |
Methods inherited from class org.enhydra.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling, parentNode, previousSibling |
Methods inherited from class org.enhydra.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, compareDocumentPosition, dispatchEvent, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasStringValue, hasStringValue, internalIsIgnorableWhitespace, isDefaultNamespace, isEqualNode, isFirstChild, isFirstChild, isIgnorableWhitespace, isNormalized, isNormalized, isOwned, isOwned, isReadOnly, isReadOnly, isSameNode, isSpecified, isSpecified, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, needsSyncChildren, needsSyncData, needsSyncData, removeEventListener, setNodeValue, setPrefix, setTextContent, setUserData, 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, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setTextContent, setUserData |
Field Detail |
public static final String DOC_TYPE_NAME
public static final String PUBLIC_ID
public static final String SYSTEM_ID
public static final String METADATA_FILE_EXTENSION
Constructor Detail |
public MetaDataDocument()
Method Detail |
static void()
public static MetaDataDocument parseMetaData(InputSource inputSource, ErrorReporter reporter, 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.public static MetaDataDocument newInstance()
public void serialize(File file) throws XMLCException
public File getMetadataOutputFile()
public void serialize() throws XMLCException
public MetaData getMetaData()
public Element createElement(Class elementClass)
public Element createElement(String tagName) throws DOMException
createElement
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
public Element createElementNS(String namespaceURI, String qualifiedName)
createElementNS
in class org.enhydra.apache.xerces.dom.CoreDocumentImpl
public void completeModifications() throws XMLCException
public void merge(MetaDataDocument srcDocument)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |