Top Fields Constructors Methods
org.apache.xerces.impl.xs.opti

public Class SchemaDOM

extends DefaultDocument
Class Inheritance
Imports
java.util.ArrayList, .Enumeration, org.apache.xerces.util.XMLSymbols, org.apache.xerces.xni.NamespaceContext, .QName, .XMLAttributes, .XMLString, org.w3c.dom.Attr, .DOMImplementation, .Element, .NamedNodeMap, .Node

Authors
Rahul Srivastava, Sun Microsystems Inc., Sandy Gao, IBM
Version
$Id: SchemaDOM.java 982713 2010-08-05 17:54:01Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv int
private StringBuffer
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv ElementImpl
pack-priv NodeImpl[][]
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
public ElementImpl
emptyElement(QName element, XMLAttributes attributes, int line, int column, int offset)

public ElementImpl
emptyElement(QName element, XMLAttributes attributes, int line, int column)

pack-priv void
endAnnotation(QName elemName, ElementImpl annotation)

pack-priv void
pack-priv void
pack-priv void
public void
pack-priv void
endSyntheticAnnotationElement(QName elemName, boolean complete)

pack-priv void
endSyntheticAnnotationElement(String elemRawName, boolean complete)

private static String
escapeAttValue(String original, int from)

public Element
getDocumentElement()

Overrides org.apache.xerces.impl.xs.opti.DefaultDocument.getDocumentElement.

Implements org.w3c.dom.Document.getDocumentElement.

This is a convenience attribute that allows direct access to the child node that is the document element of the document.
public DOMImplementation
getImplementation()

Overrides org.apache.xerces.impl.xs.opti.DefaultDocument.getImplementation.

Implements org.w3c.dom.Document.getImplementation.

The DOMImplementation object that handles this document.
public static void
indent(int amount)

public void
private static String
private void
processElement(QName element, XMLAttributes attributes, ElementImpl node)

pack-priv void
public void
private void
private void
pack-priv void
startAnnotation(QName elemName, XMLAttributes attributes, NamespaceContext namespaceContext)

pack-priv void
startAnnotation(String elemRawName, XMLAttributes attributes, NamespaceContext namespaceContext)

pack-priv void
pack-priv void
pack-priv void
startAnnotationElement(String elemRawName, XMLAttributes attributes)

public ElementImpl
startElement(QName element, XMLAttributes attributes, int line, int column, int offset)

public ElementImpl
startElement(QName element, XMLAttributes attributes, int line, int column)

public static void
traverse(Node node, int depth)

Inherited from org.apache.xerces.impl.xs.opti.DefaultDocument:
adoptNodecreateAttributecreateAttributeNScreateCDATASectioncreateCommentcreateDocumentFragmentcreateElementcreateElementNScreateEntityReferencecreateProcessingInstructioncreateTextNodegetDoctypegetDocumentURIgetDomConfiggetElementByIdgetElementsByTagNamegetElementsByTagNameNSgetInputEncodinggetNodeNamegetStrictErrorCheckinggetXmlEncodinggetXmlStandalonegetXmlVersionimportNodenormalizeDocumentrenameNodesetDocumentURIsetStrictErrorCheckingsetXmlStandalonesetXmlVersion

Field Detail

currLocback to summary
pack-priv int currLoc
fAnnotationBufferback to summary
private StringBuffer fAnnotationBuffer
hiddenback to summary
pack-priv boolean hidden

Hides org.apache.xerces.impl.xs.opti.NodeImpl.hidden.

inCDATAback to summary
pack-priv boolean inCDATA
nextFreeLocback to summary
pack-priv int nextFreeLoc
parentback to summary
pack-priv ElementImpl parent
relationsback to summary
pack-priv NodeImpl[][] relations
relationsColResizeFactorback to summary
pack-priv static final int relationsColResizeFactor
relationsRowResizeFactorback to summary
pack-priv static final int relationsRowResizeFactor

Constructor Detail

SchemaDOMback to summary
public SchemaDOM()

Method Detail

charactersback to summary
pack-priv void characters(XMLString text)
charactersRawback to summary
pack-priv void charactersRaw(String text)
commentback to summary
pack-priv void comment(XMLString text)
emptyElementback to summary
public ElementImpl emptyElement(QName element, XMLAttributes attributes, int line, int column, int offset)
emptyElementback to summary
public ElementImpl emptyElement(QName element, XMLAttributes attributes, int line, int column)
endAnnotationback to summary
pack-priv void endAnnotation(QName elemName, ElementImpl annotation)
endAnnotationCDATAback to summary
pack-priv void endAnnotationCDATA()
endAnnotationElementback to summary
pack-priv void endAnnotationElement(QName elemName)
endAnnotationElementback to summary
pack-priv void endAnnotationElement(String elemRawName)
endElementback to summary
public void endElement()
endSyntheticAnnotationElementback to summary
pack-priv void endSyntheticAnnotationElement(QName elemName, boolean complete)
endSyntheticAnnotationElementback to summary
pack-priv void endSyntheticAnnotationElement(String elemRawName, boolean complete)
escapeAttValueback to summary
private static String escapeAttValue(String original, int from)
getDocumentElementback to summary
public Element getDocumentElement()

Overrides org.apache.xerces.impl.xs.opti.DefaultDocument.getDocumentElement.

Implements org.w3c.dom.Document.getDocumentElement.

Doc from org.w3c.dom.Document.getDocumentElement.

This is a convenience attribute that allows direct access to the child node that is the document element of the document.

getImplementationback to summary
public DOMImplementation getImplementation()

Overrides org.apache.xerces.impl.xs.opti.DefaultDocument.getImplementation.

Implements org.w3c.dom.Document.getImplementation.

Doc from org.w3c.dom.Document.getImplementation.

The DOMImplementation object that handles this document. A DOM application may use objects from multiple implementations.

indentback to summary
public static void indent(int amount)
printDOMback to summary
public void printDOM()
processAttValueback to summary
private static String processAttValue(String original)
processElementback to summary
private void processElement(QName element, XMLAttributes attributes, ElementImpl node)
processingInstructionback to summary
pack-priv void processingInstruction(String target, XMLString data)
resetback to summary
public void reset()
resizeRelationsback to summary
private void resizeRelations()
resizeRelationsback to summary
private void resizeRelations(int i)
startAnnotationback to summary
pack-priv void startAnnotation(QName elemName, XMLAttributes attributes, NamespaceContext namespaceContext)
startAnnotationback to summary
pack-priv void startAnnotation(String elemRawName, XMLAttributes attributes, NamespaceContext namespaceContext)
startAnnotationCDATAback to summary
pack-priv void startAnnotationCDATA()
startAnnotationElementback to summary
pack-priv void startAnnotationElement(QName elemName, XMLAttributes attributes)
startAnnotationElementback to summary
pack-priv void startAnnotationElement(String elemRawName, XMLAttributes attributes)
startElementback to summary
public ElementImpl startElement(QName element, XMLAttributes attributes, int line, int column, int offset)
startElementback to summary
public ElementImpl startElement(QName element, XMLAttributes attributes, int line, int column)
traverseback to summary
public static void traverse(Node node, int depth)