org.apache.xalan.xsltc.dom
public class SimpleResultTreeImpl extends EmptySerializer implements DOM, DTM
A SimpleResultTreeImpl has only two nodes, i.e. the ROOT node and its Text child. All DOM interfaces are overridden with this in mind. For example, the getStringValue() interface returns the value of the Text node. This class receives the character data from the characters() interface.
This class implements DOM and SerializationHandler. It also implements the DTM interface for support in MultiDOM. The nested iterators (SimpleIterator and SingletonIterator) are used to support the nodeset() extension function.
Nested Class Summary | |
---|---|
class | SimpleResultTreeImpl.SimpleIterator
The SimpleIterator is designed to support the nodeset() extension function. |
class | SimpleResultTreeImpl.SingletonIterator
The SingletonIterator is used for the self axis. |
Field Summary | |
---|---|
static int | NUMBER_OF_NODES |
static int | RTF_ROOT |
static int | RTF_TEXT |
Constructor Summary | |
---|---|
SimpleResultTreeImpl(XSLTCDTMManager dtmManager, int documentID) |
Method Summary | |
---|---|
void | appendChild(int newChild, boolean clone, boolean cloneDepth) |
void | appendTextChild(String str) |
void | characters(int node, SerializationHandler handler)
Dispatch the character content of a node to an output handler.
|
void | characters(String str) |
void | characters(char[] ch, int offset, int length) |
void | copy(int node, SerializationHandler handler) |
void | copy(DTMAxisIterator nodes, SerializationHandler handler) |
void | dispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize) |
void | dispatchToEvents(int nodeHandle, ContentHandler ch) |
void | documentRegistration() |
void | documentRelease() |
void | endDocument() |
int | getAttributeNode(int gType, int element) |
int | getAttributeNode(int elementHandle, String namespaceURI, String name) |
DTMAxisIterator | getAxisIterator(int axis) |
DTMAxisTraverser | getAxisTraverser(int axis) |
DTMAxisIterator | getChildren(int node) |
ContentHandler | getContentHandler() |
DeclHandler | getDeclHandler() |
int | getDocument() |
boolean | getDocumentAllDeclarationsProcessed() |
String | getDocumentBaseURI() |
String | getDocumentEncoding(int nodeHandle) |
int | getDocumentRoot(int nodeHandle) |
String | getDocumentStandalone(int nodeHandle) |
String | getDocumentSystemIdentifier(int nodeHandle) |
String | getDocumentTypeDeclarationPublicIdentifier() |
String | getDocumentTypeDeclarationSystemIdentifier() |
String | getDocumentURI(int node) |
String | getDocumentVersion(int documentHandle) |
DTDHandler | getDTDHandler() |
DTMManagerDefault | getDTMManager() |
int | getElementById(String elementId) |
Hashtable | getElementsWithIDs() |
EntityResolver | getEntityResolver() |
ErrorHandler | getErrorHandler() |
int | getExpandedTypeID(int nodeHandle) |
int | getExpandedTypeID(String namespace, String localName, int type) |
int | getFirstAttribute(int nodeHandle) |
int | getFirstChild(int nodeHandle) |
int | getFirstNamespaceNode(int nodeHandle, boolean inScope) |
DTMAxisIterator | getIterator() |
String | getLanguage(int node) |
int | getLastChild(int nodeHandle) |
short | getLevel(int nodeHandle) |
LexicalHandler | getLexicalHandler() |
String | getLocalName(int nodeHandle) |
String | getLocalNameFromExpandedNameID(int ExpandedNameID) |
DTMAxisIterator | getNamespaceAxisIterator(int axis, int ns) |
String | getNamespaceFromExpandedNameID(int ExpandedNameID) |
String | getNamespaceName(int node) |
int | getNamespaceType(int node) |
String | getNamespaceURI(int nodeHandle) |
int | getNextAttribute(int nodeHandle) |
int | getNextNamespaceNode(int baseHandle, int namespaceHandle, boolean inScope) |
int | getNextSibling(int nodeHandle) |
Node | getNode(int nodeHandle) |
int | getNodeHandle(int nodeId)
Return the node handle from a node identity. |
int | getNodeIdent(int nodehandle)
Return the node identity from a node handle. |
String | getNodeName(int node) |
String | getNodeNameX(int node) |
short | getNodeType(int nodeHandle) |
String | getNodeValue(int nodeHandle) |
DTMAxisIterator | getNodeValueIterator(DTMAxisIterator iter, int returnType, String value, boolean op) |
int | getNSType(int node) |
DTMAxisIterator | getNthDescendant(int node, int n, boolean includeself) |
SerializationHandler | getOutputDomBuilder() |
int | getOwnerDocument(int nodeHandle) |
int | getParent(int nodeHandle) |
String | getPrefix(int nodeHandle) |
int | getPreviousSibling(int nodeHandle) |
DOM | getResultTreeFrag(int initialSize, int rtfType) |
DOM | getResultTreeFrag(int initialSize, int rtfType, boolean addToManager) |
int | getSize() |
SourceLocator | getSourceLocatorFor(int node) |
String | getStringValue() |
XMLString | getStringValue(int nodeHandle) |
char[] | getStringValueChunk(int nodeHandle, int chunkIndex, int[] startAndLen) |
int | getStringValueChunkCount(int nodeHandle) |
String | getStringValueX(int nodeHandle) |
DTMAxisIterator | getTypedAxisIterator(int axis, int type) |
DTMAxisIterator | getTypedChildren(int type) |
String | getUnparsedEntityURI(String name) |
boolean | hasChildNodes(int nodeHandle) |
boolean | isAttribute(int node) |
boolean | isAttributeSpecified(int attributeHandle) |
boolean | isCharacterElementContentWhitespace(int nodeHandle) |
boolean | isDocumentAllDeclarationsProcessed(int documentHandle) |
boolean | isElement(int node) |
boolean | isNodeAfter(int firstNodeHandle, int secondNodeHandle) |
boolean | isSupported(String feature, String version) |
boolean | lessThan(int node1, int node2) |
String | lookupNamespace(int node, String prefix) |
Node | makeNode(int index) |
Node | makeNode(DTMAxisIterator iter) |
NodeList | makeNodeList(int index) |
NodeList | makeNodeList(DTMAxisIterator iter) |
void | migrateTo(DTMManager manager) |
boolean | needsTwoThreads() |
DTMAxisIterator | orderNodes(DTMAxisIterator source, int node) |
void | setDocumentBaseURI(String baseURI) |
boolean | setEscaping(boolean escape) |
void | setFeature(String featureId, boolean state)
The DTM interfaces are not used in this class. |
void | setFilter(StripFilter filter) |
void | setProperty(String property, Object value) |
void | setupMapping(String[] names, String[] uris, int[] types, String[] namespaces) |
String | shallowCopy(int node, SerializationHandler handler) |
void | startDocument()
We only need to override the endDocument, characters, and
setEscaping interfaces. |
boolean | supportsPreStripping() |