Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DeferredDocumentImpl

extends DocumentImpl
implements DeferredNode
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.dom.DeferredNode, org.w3c.dom.Node
Imports
java.util.ArrayList, .HashMap, .List, org.w3c.dom.DOMImplementation, .Element, .Node

The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.

Since
PR-DOM-Level-1-19980818.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
DeferredDocumentImpl.IntVector

A simple integer vector.

pack-priv static class

Field Summary

Modifier and TypeField and Description
protected static final int
CHUNK_MASK

Chunk mask.

protected static final int
CHUNK_SHIFT

Chunk shift.

protected static final int
CHUNK_SIZE

Chunk size.

private static final boolean
DEBUG_IDS

To debug identifiers set to true and recompile.

private static final boolean
DEBUG_PRINT_REF_COUNTS

To include code for printing the ref count tables.

private static final boolean
DEBUG_PRINT_TABLES

To include code for printing the internal tables.

private final transient StringBuilder
protected transient int
fIdCount

Identifier count.

protected transient int[]
fIdElement

Identifier element indexes.

protected transient String[]
fIdName

Identifier name indexes.

protected boolean
fNamespacesEnabled

DOM2: For namespace support in the deferred case.

protected transient int
fNodeCount

Node count.

protected transient int[][]
fNodeExtra

Extra data.

protected transient int[][]
fNodeLastChild

Node first children.

protected transient Object[][]
fNodeName

Node names.

protected transient int[][]
fNodeParent

Node parents.

protected transient int[][]
fNodePrevSib

Node prev siblings.

protected transient int[][]
fNodeType

Node types.

protected transient Object[][]
fNodeURI

Node namespace URI.

protected transient Object[][]
fNodeValue

Node values.

private final transient List<String>
private static final int[]
protected static final int
INITIAL_CHUNK_COUNT

Initial chunk size.

pack-priv static final long
Inherited from com.sun.org.apache.xerces.internal.dom.DocumentImpl:
eventListenersiteratorsmutationEventsrangessavedEnclosingAttr

Constructor Summary

AccessConstructor and Description
public
DeferredDocumentImpl()

NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.

public
DeferredDocumentImpl(boolean namespacesEnabled)

NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.

public
DeferredDocumentImpl(boolean namespaces, boolean grammarAccess)

Experimental constructor.

Method Summary

Modifier and TypeMethod and Description
public void
appendChild(int parentIndex, int childIndex)

Appends a child to the specified parent in the table.

protected static int

Returns:

This function will return the first occurrence of the target value, or -1 if the target value cannot be found.
binarySearch
(final int[]
The array of values to search.
values
,
int
The starting offset of the search.
start
,
int
The ending offset of the search.
end
,
int
The target value.
target
)

Performs a binary search for a target value in an array of values.

private final int

Returns:

Returns the old value.
clearChunkIndex
(int[][] data, int chunk, int index)

Clears the specified value in the given data at the chunk and index.

private final String
clearChunkValue(Object[][] data, int chunk, int index)

public int
cloneNode(int nodeIndex, boolean deep)

Creates a clone of the specified node.

private final void
createChunk(int[][] data, int chunk)

Creates the specified chunk in the given array of chunks.

private final void
createChunk(Object[][] data, int chunk)

public int
createDeferredAttribute(String attrName, String attrValue, boolean specified)

Creates an attribute in the table.

public int
createDeferredAttribute(String attrName, String attrURI, String attrValue, boolean specified)

Creates an attribute with a URI in the table.

public int
createDeferredCDATASection(String data)

Creates a CDATA section node in the table.

public int
createDeferredComment(String data)

Creates a comment node in the table.

public int
createDeferredDocument()

Creates a document node in the table.

public int
createDeferredDocumentType(String rootElementName, String publicId, String systemId)

Creates a doctype.

public int
createDeferredElement(String elementURI, String elementName, Object type)
Deprecated

Creates an element node with a URI in the table and type information.

public int
createDeferredElement(String elementName)
Deprecated

Creates an element node in the table.

public int
createDeferredElement(String elementURI, String elementName)

Creates an element node with a URI in the table.

public int
createDeferredElementDefinition(String elementName)

Creates an element definition in the table.

public int
createDeferredEntity(String entityName, String publicId, String systemId, String notationName, String baseURI)

Creates an entity in the table.

public int
createDeferredEntityReference(String name, String baseURI)

Creates an entity reference node in the table.

public int
createDeferredNotation(String notationName, String publicId, String systemId, String baseURI)

Creates a notation in the table.

public int
createDeferredProcessingInstruction(String target, String data)

Creates a processing instruction node in the table.

public int
createDeferredTextNode(String data, boolean ignorableWhitespace)

Creates a text node in the table.

protected int
createNode(short nodeType)

Creates a node of the specified type.

protected void
ensureCapacity(int chunk)

Ensures that the internal tables are large enough.

public String
getAttribute(int elemIndex, String name)

Returns the attribute value of the given name.

private final int
getChunkIndex(int[][] data, int chunk, int index)

Returns the specified value in the given data at the chunk and index.

private final String
getChunkValue(Object[][] data, int chunk, int index)

public String
getDeferredEntityBaseURI(int entityIndex)

public DOMImplementation
getImplementation()

Overrides com.sun.org.apache.xerces.internal.dom.DocumentImpl.getImplementation.

Implements org.w3c.dom.Document.getImplementation.

Retrieve information describing the abilities of this particular DOM implementation.

public int
getLastChild(int nodeIndex)

Returns the last child of the given node.

public int
getLastChild(int nodeIndex, boolean
True to free child index.
free
)

Returns the last child of the given node.

pack-priv boolean
getNamespacesEnabled()

Returns the cached parser.getNamespaces() value.

public int
getNodeExtra(int nodeIndex)

Returns the extra info of the given node.

public int
getNodeExtra(int nodeIndex, boolean
True to free the value index.
free
)

Returns the extra info of the given node.

public int
public String
getNodeName(int nodeIndex)

Returns the name of the given node.

public String
getNodeName(int nodeIndex, boolean
True to free the string index.
free
)

Returns the name of the given node.

public DeferredNode
getNodeObject(int nodeIndex)

Instantiates the requested node object.

public short
getNodeType(int nodeIndex)

Returns the type of the given node.

public short
getNodeType(int nodeIndex, boolean
True to free type index.
free
)

Returns the type of the given node.

public String
getNodeURI(int nodeIndex)

Returns the URI of the given node.

public String
getNodeURI(int nodeIndex, boolean
True to free URI index.
free
)

Returns the URI of the given node.

public String
getNodeValue(int nodeIndex)

Returns the value of the given node.

public String
getNodeValue(int nodeIndex, boolean
True to free the value index.
free
)

Returns the value of the given node.

private final String
getNodeValue(int chunk, int index)

public String
getNodeValueString(int nodeIndex)

Returns the real value of the given node.

public String
getNodeValueString(int nodeIndex, boolean
True to free the string index.
free
)

Returns the real value of the given node.

public int
getParentNode(int nodeIndex)

Returns the parent node of the given node.

public int
getParentNode(int nodeIndex, boolean
True to free parent node.
free
)

Returns the parent node of the given node.

public int
getPrevSibling(int nodeIndex)

Returns the prev sibling of the given node.

public int
getPrevSibling(int nodeIndex, boolean
True to free sibling index.
free
)

Returns the prev sibling of the given node.

public int
getRealPrevSibling(int nodeIndex)

Returns the real prev sibling of the given node, directly from the data structures.

public int
getRealPrevSibling(int nodeIndex, boolean
True to free sibling index.
free
)

Returns the real prev sibling of the given node.

public Object

Returns:

Object - type information for the attribute/element node
getTypeInfo
(int nodeIndex)

Clears the type info that is stored in the fNodeValue array

public int
insertBefore(int parentIndex, int newChildIndex, int refChildIndex)

Inserts a child before the specified node in the table.

public int
lookupElementDefinition(String elementName)

Returns the index of the element definition in the table with the specified name index, or -1 if no such definition exists.

public void
putIdentifier(String name, int elementNodeIndex)

Registers an identifier name with a specified element node.

private final void
putIdentifier0(String idName, Element element)

This version of putIdentifier is needed to avoid fluffing all of the paths to ID attributes when a node object is created that contains an ID attribute.

public void
setAsLastChild(int parentIndex, int childIndex)

Sets the last child of the parentIndex to childIndex.

public int
setAttributeNode(int elemIndex, int attrIndex)

Adds an attribute node to the specified element.

private final int

Returns:

Returns the old value.
setChunkIndex
(int[][] data, int value, int chunk, int index)

Sets the specified value in the given of data at the chunk and index.

private final String
setChunkValue(Object[][] data, Object value, int chunk, int index)

public int

Returns:

int
setDeferredAttribute
(int elementNodeIndex, String attrName, String attrURI, String attrValue, boolean specified, boolean id, Object type)

This method is used by the DOMParser to create attributes.

public void
setEntityInfo(int currentEntityDecl, String version, String encoding)

public void
setIdAttribute(int attrIndex)

Sets type of attribute

public void
setIdAttributeNode(int elemIndex, int attrIndex)

Adds an attribute node to the specified element.

public void
setInputEncoding(int currentEntityDecl, String value)

DOM Internal An attribute specifying the actual encoding of this document.

public void
setInternalSubset(int doctypeIndex, String subset)

pack-priv void
setNamespacesEnabled(boolean enable)

public void
setTypeInfo(int elementNodeIndex, Object type)

protected void
synchronizeChildren()

Overrides com.sun.org.apache.xerces.internal.dom.ParentNode.synchronizeChildren.

Synchronizes the node's children with the internal structure.

protected final void
synchronizeChildren(AttrImpl a, int nodeIndex)

Synchronizes the node's children with the internal structure.

protected final void
synchronizeChildren(ParentNode p, int nodeIndex)

Synchronizes the node's children with the internal structure.

protected void
Inherited from com.sun.org.apache.xerces.internal.dom.DocumentImpl:
addEventListenercloneNodecopyEventListenerscreateEventcreateNodeIteratorcreateNodeIteratorcreateRangecreateTreeWalkercreateTreeWalkerdeletedTextdispatchAggregateEventsdispatchAggregateEventsdispatchEventdispatchEventToSubtreedispatchingEventToSubtreegetEventListenersgetMutationEventsinsertedNodeinsertedTextinsertingNodemodifiedAttrValuemodifiedCharacterDatamodifyingCharacterDataremovedAttrNoderemovedNoderemoveEventListenerremoveNodeIteratorremoveRangeremovingNoderenamedAttrNoderenamedElementreplacedCharacterDatareplacedNodereplacedTextreplacingDatareplacingNodesaveEnclosingAttrsetAttrNodesetEventListenerssetMutationEventssplitData

Field Detail

CHUNK_MASKback to summary
protected static final int CHUNK_MASK

Chunk mask.

CHUNK_SHIFTback to summary
protected static final int CHUNK_SHIFT

Chunk shift.

CHUNK_SIZEback to summary
protected static final int CHUNK_SIZE

Chunk size.

DEBUG_IDSback to summary
private static final boolean DEBUG_IDS

To debug identifiers set to true and recompile.

DEBUG_PRINT_REF_COUNTSback to summary
private static final boolean DEBUG_PRINT_REF_COUNTS

To include code for printing the ref count tables.

DEBUG_PRINT_TABLESback to summary
private static final boolean DEBUG_PRINT_TABLES

To include code for printing the internal tables.

fBufferStrback to summary
private final transient StringBuilder fBufferStr
fIdCountback to summary
protected transient int fIdCount

Identifier count.

fIdElementback to summary
protected transient int[] fIdElement

Identifier element indexes.

fIdNameback to summary
protected transient String[] fIdName

Identifier name indexes.

fNamespacesEnabledback to summary
protected boolean fNamespacesEnabled

DOM2: For namespace support in the deferred case.

fNodeCountback to summary
protected transient int fNodeCount

Node count.

fNodeExtraback to summary
protected transient int[][] fNodeExtra

Extra data.

fNodeLastChildback to summary
protected transient int[][] fNodeLastChild

Node first children.

fNodeNameback to summary
protected transient Object[][] fNodeName

Node names.

fNodeParentback to summary
protected transient int[][] fNodeParent

Node parents.

fNodePrevSibback to summary
protected transient int[][] fNodePrevSib

Node prev siblings.

fNodeTypeback to summary
protected transient int[][] fNodeType

Node types.

fNodeURIback to summary
protected transient Object[][] fNodeURI

Node namespace URI.

fNodeValueback to summary
protected transient Object[][] fNodeValue

Node values.

fStrChunksback to summary
private final transient List<String> fStrChunks
INIT_ARRAYback to summary
private static final int[] INIT_ARRAY
INITIAL_CHUNK_COUNTback to summary
protected static final int INITIAL_CHUNK_COUNT

Initial chunk size.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.dom.DocumentImpl.serialVersionUID.

Serialization version.

Constructor Detail

DeferredDocumentImplback to summary
public DeferredDocumentImpl()

NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.

DeferredDocumentImplback to summary
public DeferredDocumentImpl(boolean namespacesEnabled)

NON-DOM: Actually creating a Document is outside the DOM's spec, since it has to operate in terms of a particular implementation.

DeferredDocumentImplback to summary
public DeferredDocumentImpl(boolean namespaces, boolean grammarAccess)

Experimental constructor.

Method Detail

appendChildback to summary
public void appendChild(int parentIndex, int childIndex)

Appends a child to the specified parent in the table.

binarySearchback to summary
protected static int binarySearch(final int[] values, int start, int end, int target)

Performs a binary search for a target value in an array of values. The array of values must be in ascending sorted order before calling this method and all array values must be non-negative.

Parameters
values:int[]

The array of values to search.

start:int

The starting offset of the search.

end:int

The ending offset of the search.

target:int

The target value.

Returns:int

This function will return the first occurrence of the target value, or -1 if the target value cannot be found.

clearChunkIndexback to summary
private final int clearChunkIndex(int[][] data, int chunk, int index)

Clears the specified value in the given data at the chunk and index. Note that this method will clear the given chunk if the reference count becomes zero.

Returns:int

Returns the old value.

clearChunkValueback to summary
private final String clearChunkValue(Object[][] data, int chunk, int index)
cloneNodeback to summary
public int cloneNode(int nodeIndex, boolean deep)

Creates a clone of the specified node.

createChunkback to summary
private final void createChunk(int[][] data, int chunk)

Creates the specified chunk in the given array of chunks.

createChunkback to summary
private final void createChunk(Object[][] data, int chunk)
createDeferredAttributeback to summary
public int createDeferredAttribute(String attrName, String attrValue, boolean specified)

Creates an attribute in the table.

createDeferredAttributeback to summary
public int createDeferredAttribute(String attrName, String attrURI, String attrValue, boolean specified)

Creates an attribute with a URI in the table.

createDeferredCDATASectionback to summary
public int createDeferredCDATASection(String data)

Creates a CDATA section node in the table.

createDeferredCommentback to summary
public int createDeferredComment(String data)

Creates a comment node in the table.

createDeferredDocumentback to summary
public int createDeferredDocument()

Creates a document node in the table.

createDeferredDocumentTypeback to summary
public int createDeferredDocumentType(String rootElementName, String publicId, String systemId)

Creates a doctype.

createDeferredElementback to summary
public int createDeferredElement(String elementURI, String elementName, Object type)

Deprecated

Creates an element node with a URI in the table and type information.

Annotations
@Deprecated
createDeferredElementback to summary
public int createDeferredElement(String elementName)

Deprecated

Creates an element node in the table.

Annotations
@Deprecated
createDeferredElementback to summary
public int createDeferredElement(String elementURI, String elementName)

Creates an element node with a URI in the table.

createDeferredElementDefinitionback to summary
public int createDeferredElementDefinition(String elementName)

Creates an element definition in the table.

createDeferredEntityback to summary
public int createDeferredEntity(String entityName, String publicId, String systemId, String notationName, String baseURI)

Creates an entity in the table.

createDeferredEntityReferenceback to summary
public int createDeferredEntityReference(String name, String baseURI)

Creates an entity reference node in the table.

createDeferredNotationback to summary
public int createDeferredNotation(String notationName, String publicId, String systemId, String baseURI)

Creates a notation in the table.

createDeferredProcessingInstructionback to summary
public int createDeferredProcessingInstruction(String target, String data)

Creates a processing instruction node in the table.

createDeferredTextNodeback to summary
public int createDeferredTextNode(String data, boolean ignorableWhitespace)

Creates a text node in the table.

createNodeback to summary
protected int createNode(short nodeType)

Creates a node of the specified type.

ensureCapacityback to summary
protected void ensureCapacity(int chunk)

Ensures that the internal tables are large enough.

getAttributeback to summary
public String getAttribute(int elemIndex, String name)

Returns the attribute value of the given name.

getChunkIndexback to summary
private final int getChunkIndex(int[][] data, int chunk, int index)

Returns the specified value in the given data at the chunk and index.

getChunkValueback to summary
private final String getChunkValue(Object[][] data, int chunk, int index)
getDeferredEntityBaseURIback to summary
public String getDeferredEntityBaseURI(int entityIndex)
getImplementationback to summary
public DOMImplementation getImplementation()

Overrides com.sun.org.apache.xerces.internal.dom.DocumentImpl.getImplementation.

Implements org.w3c.dom.Document.getImplementation.

Retrieve information describing the abilities of this particular DOM implementation. Intended to support applications that may be using DOMs retrieved from several different sources, potentially with different underlying representations.

getLastChildback to summary
public int getLastChild(int nodeIndex)

Returns the last child of the given node.

getLastChildback to summary
public int getLastChild(int nodeIndex, boolean free)

Returns the last child of the given node.

Parameters
free:boolean

True to free child index.

getNamespacesEnabledback to summary
pack-priv boolean getNamespacesEnabled()

Returns the cached parser.getNamespaces() value.

getNodeExtraback to summary
public int getNodeExtra(int nodeIndex)

Returns the extra info of the given node. Used by AttrImpl to store specified value (1 == true).

getNodeExtraback to summary
public int getNodeExtra(int nodeIndex, boolean free)

Returns the extra info of the given node.

Parameters
free:boolean

True to free the value index.

getNodeIndexback to summary
public int getNodeIndex()

Implements com.sun.org.apache.xerces.internal.dom.DeferredNode.getNodeIndex.

Returns the node index.

getNodeNameback to summary
public String getNodeName(int nodeIndex)

Returns the name of the given node.

getNodeNameback to summary
public String getNodeName(int nodeIndex, boolean free)

Returns the name of the given node.

Parameters
free:boolean

True to free the string index.

getNodeObjectback to summary
public DeferredNode getNodeObject(int nodeIndex)

Instantiates the requested node object.

getNodeTypeback to summary
public short getNodeType(int nodeIndex)

Returns the type of the given node.

getNodeTypeback to summary
public short getNodeType(int nodeIndex, boolean free)

Returns the type of the given node.

Parameters
free:boolean

True to free type index.

getNodeURIback to summary
public String getNodeURI(int nodeIndex)

Returns the URI of the given node.

getNodeURIback to summary
public String getNodeURI(int nodeIndex, boolean free)

Returns the URI of the given node.

Parameters
free:boolean

True to free URI index.

getNodeValueback to summary
public String getNodeValue(int nodeIndex)

Returns the value of the given node.

getNodeValueback to summary
public String getNodeValue(int nodeIndex, boolean free)

Returns the value of the given node.

Parameters
free:boolean

True to free the value index.

getNodeValueback to summary
private final String getNodeValue(int chunk, int index)
getNodeValueStringback to summary
public String getNodeValueString(int nodeIndex)

Returns the real value of the given node.

getNodeValueStringback to summary
public String getNodeValueString(int nodeIndex, boolean free)

Returns the real value of the given node.

Parameters
free:boolean

True to free the string index.

getParentNodeback to summary
public int getParentNode(int nodeIndex)

Returns the parent node of the given node. Calling this method does not free the parent index.

getParentNodeback to summary
public int getParentNode(int nodeIndex, boolean free)

Returns the parent node of the given node.

Parameters
free:boolean

True to free parent node.

getPrevSiblingback to summary
public int getPrevSibling(int nodeIndex)

Returns the prev sibling of the given node. This is post-normalization of Text Nodes.

getPrevSiblingback to summary
public int getPrevSibling(int nodeIndex, boolean free)

Returns the prev sibling of the given node.

Parameters
free:boolean

True to free sibling index.

getRealPrevSiblingback to summary
public int getRealPrevSibling(int nodeIndex)

Returns the real prev sibling of the given node, directly from the data structures. Used by TextImpl#getNodeValue() to normalize values.

getRealPrevSiblingback to summary
public int getRealPrevSibling(int nodeIndex, boolean free)

Returns the real prev sibling of the given node.

Parameters
free:boolean

True to free sibling index.

getTypeInfoback to summary
public Object getTypeInfo(int nodeIndex)

Clears the type info that is stored in the fNodeValue array

Returns:Object

Object - type information for the attribute/element node

insertBeforeback to summary
public int insertBefore(int parentIndex, int newChildIndex, int refChildIndex)

Inserts a child before the specified node in the table.

lookupElementDefinitionback to summary
public int lookupElementDefinition(String elementName)

Returns the index of the element definition in the table with the specified name index, or -1 if no such definition exists.

putIdentifierback to summary
public void putIdentifier(String name, int elementNodeIndex)

Registers an identifier name with a specified element node.

putIdentifier0back to summary
private final void putIdentifier0(String idName, Element element)

This version of putIdentifier is needed to avoid fluffing all of the paths to ID attributes when a node object is created that contains an ID attribute.

setAsLastChildback to summary
public void setAsLastChild(int parentIndex, int childIndex)

Sets the last child of the parentIndex to childIndex.

setAttributeNodeback to summary
public int setAttributeNode(int elemIndex, int attrIndex)

Adds an attribute node to the specified element.

setChunkIndexback to summary
private final int setChunkIndex(int[][] data, int value, int chunk, int index)

Sets the specified value in the given of data at the chunk and index.

Returns:int

Returns the old value.

setChunkValueback to summary
private final String setChunkValue(Object[][] data, Object value, int chunk, int index)
setDeferredAttributeback to summary
public int setDeferredAttribute(int elementNodeIndex, String attrName, String attrURI, String attrValue, boolean specified, boolean id, Object type)

This method is used by the DOMParser to create attributes.

Returns:int

int

setEntityInfoback to summary
public void setEntityInfo(int currentEntityDecl, String version, String encoding)
setIdAttributeback to summary
public void setIdAttribute(int attrIndex)

Sets type of attribute

setIdAttributeNodeback to summary
public void setIdAttributeNode(int elemIndex, int attrIndex)

Adds an attribute node to the specified element.

setInputEncodingback to summary
public void setInputEncoding(int currentEntityDecl, String value)

DOM Internal An attribute specifying the actual encoding of this document. This is null otherwise.
This attribute represents the property [character encoding scheme] defined in .

setInternalSubsetback to summary
public void setInternalSubset(int doctypeIndex, String subset)
setNamespacesEnabledback to summary
pack-priv void setNamespacesEnabled(boolean enable)
setTypeInfoback to summary
public void setTypeInfo(int elementNodeIndex, Object type)
synchronizeChildrenback to summary
protected void synchronizeChildren()

Overrides com.sun.org.apache.xerces.internal.dom.ParentNode.synchronizeChildren.

Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier.

synchronizeChildrenback to summary
protected final void synchronizeChildren(AttrImpl a, int nodeIndex)

Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier. This is not directly used in this class but this method is here so that it can be shared by all deferred subclasses of AttrImpl.

synchronizeChildrenback to summary
protected final void synchronizeChildren(ParentNode p, int nodeIndex)

Synchronizes the node's children with the internal structure. Fluffing the children at once solves a lot of work to keep the two structures in sync. The problem gets worse when editing the tree -- this makes it a lot easier. This is not directly used in this class but this method is here so that it can be shared by all deferred subclasses of ParentNode.

synchronizeDataback to summary
protected void synchronizeData()

Overrides com.sun.org.apache.xerces.internal.dom.NodeImpl.synchronizeData.

Synchronizes the node's data.

com.sun.org.apache.xerces.internal.dom back to summary

pack-priv final Class DeferredDocumentImpl.IntVector

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.IntVector

A simple integer vector.

Field Summary

Modifier and TypeField and Description
private int[]
data

Data.

private int
size

Size.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
addElement(int element)

Appends an element to the end of the vector.

public int
elementAt(int index)

Returns the element at the specified index.

private void
ensureCapacity(int newsize)

Makes sure that there is enough storage.

public void
removeAllElements()

Clears the vector.

public int
size()

Returns the length of this vector.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private int[] data

Data.

sizeback to summary
private int size

Size.

Constructor Detail

IntVectorback to summary
pack-priv IntVector()

Method Detail

addElementback to summary
public void addElement(int element)

Appends an element to the end of the vector.

elementAtback to summary
public int elementAt(int index)

Returns the element at the specified index.

ensureCapacityback to summary
private void ensureCapacity(int newsize)

Makes sure that there is enough storage.

removeAllElementsback to summary
public void removeAllElements()

Clears the vector.

sizeback to summary
public int size()

Returns the length of this vector.

com.sun.org.apache.xerces.internal.dom back to summary

pack-priv final Class DeferredDocumentImpl.RefCount

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.RefCount

Field Summary

Modifier and TypeField and Description
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fCountback to summary
pack-priv int fCount

Constructor Detail

RefCountback to summary
pack-priv RefCount()