Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xml.serializer.EmptySerializer
org.apache.xalan.xsltc.dom.SimpleResultTreeImpl
Nested Class Summary |
Field Summary | |
static int | |
static int | |
static int |
Fields inherited from interface org.apache.xalan.xsltc.DOM | |
ADAPTIVE_RTF , FIRST_TYPE , NO_TYPE , NULL , RETURN_CURRENT , RETURN_PARENT , SIMPLE_RTF , TREE_RTF |
Fields inherited from interface org.apache.xml.dtm.DTM | |
ATTRIBUTE_NODE , CDATA_SECTION_NODE , COMMENT_NODE , DOCUMENT_FRAGMENT_NODE , DOCUMENT_NODE , DOCUMENT_TYPE_NODE , ELEMENT_NODE , ENTITY_NODE , ENTITY_REFERENCE_NODE , NAMESPACE_NODE , NOTATION_NODE , NTYPES , NULL , PROCESSING_INSTRUCTION_NODE , ROOT_NODE , TEXT_NODE |
Fields inherited from interface org.apache.xml.serializer.ExtendedContentHandler | |
HTML_ATTREMPTY , HTML_ATTRURL , NO_BAD_CHARS |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void | |
int |
|
int |
|
DTMAxisIterator |
|
DTMAxisTraverser |
|
DTMAxisIterator |
|
ContentHandler | |
DTDHandler | |
DTMManagerDefault | |
DeclHandler | |
int | |
boolean | |
String | |
String |
|
int |
|
String |
|
String |
|
String | |
String | |
String |
|
String |
|
int |
|
Hashtable | |
EntityResolver | |
ErrorHandler | |
int |
|
int |
|
int |
|
int |
|
int |
|
DTMAxisIterator | |
String |
|
int |
|
short |
|
LexicalHandler | |
String |
|
String |
|
int |
|
DTMAxisIterator |
|
String |
|
String |
|
int |
|
String |
|
int |
|
int |
|
int |
|
Node |
|
int |
|
int |
|
String |
|
String |
|
short |
|
String |
|
DTMAxisIterator |
|
DTMAxisIterator |
|
SerializationHandler | |
int |
|
int |
|
String |
|
int |
|
DOM |
|
DOM |
|
int |
|
SourceLocator |
|
String | |
XMLString |
|
char[] |
|
int |
|
String |
|
DTMAxisIterator |
|
DTMAxisIterator |
|
String |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
String |
|
Node |
|
Node |
|
NodeList |
|
NodeList |
|
void |
|
boolean | |
DTMAxisIterator |
|
void |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
String |
|
void |
|
boolean |
public static final int NUMBER_OF_NODES
- Field Value:
- 2
public static final int RTF_ROOT
- Field Value:
- 0
public static final int RTF_TEXT
- Field Value:
- 1
public void appendChild(int newChild, boolean clone, boolean cloneDepth)
- Specified by:
- appendChild in interface DTM
public void characters(String str) throws SAXException
- Specified by:
- characters in interface ExtendedContentHandler
- Overrides:
- characters in interface EmptySerializer
public void characters(char[] ch, int offset, int length) throws SAXException
- Overrides:
- characters in interface EmptySerializer
public void characters(int node, SerializationHandler handler) throws TransletException
Dispatch the character content of a node to an output handler. The escape setting should be taken care of when outputting to a handler.
- Specified by:
- characters in interface DOM
public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize) throws SAXException
- Specified by:
- dispatchCharactersEvents in interface DTM
public void dispatchToEvents(int nodeHandle, ContentHandler ch) throws SAXException
- Specified by:
- dispatchToEvents in interface DTM
public void documentRegistration()
- Specified by:
- documentRegistration in interface DTM
public void endDocument() throws SAXException
- Specified by:
- endDocument in interface ContentHandler
- Overrides:
- endDocument in interface EmptySerializer
public int getAttributeNode(int elementHandle, String namespaceURI, String name)
- Specified by:
- getAttributeNode in interface DTM
public int getAttributeNode(int gType, int element)
- Specified by:
- getAttributeNode in interface DOM
public DTMAxisIterator getAxisIterator(int axis)
- Specified by:
- getAxisIterator in interface DOM
- getAxisIterator in interface DTM
public DTMAxisTraverser getAxisTraverser(int axis)
- Specified by:
- getAxisTraverser in interface DTM
public ContentHandler getContentHandler()
- Specified by:
- getContentHandler in interface DTM
public int getDocument()
- Specified by:
- getDocument in interface DOM
- getDocument in interface DTM
public boolean getDocumentAllDeclarationsProcessed()
- Specified by:
- getDocumentAllDeclarationsProcessed in interface DTM
public String getDocumentBaseURI()
- Specified by:
- getDocumentBaseURI in interface DTM
public String getDocumentEncoding(int nodeHandle)
- Specified by:
- getDocumentEncoding in interface DTM
public int getDocumentRoot(int nodeHandle)
- Specified by:
- getDocumentRoot in interface DTM
public String getDocumentStandalone(int nodeHandle)
- Specified by:
- getDocumentStandalone in interface DTM
public String getDocumentSystemIdentifier(int nodeHandle)
- Specified by:
- getDocumentSystemIdentifier in interface DTM
public String getDocumentTypeDeclarationPublicIdentifier()
- Specified by:
- getDocumentTypeDeclarationPublicIdentifier in interface DTM
public String getDocumentTypeDeclarationSystemIdentifier()
- Specified by:
- getDocumentTypeDeclarationSystemIdentifier in interface DTM
public String getDocumentVersion(int documentHandle)
- Specified by:
- getDocumentVersion in interface DTM
public int getElementById(String elementId)
- Specified by:
- getElementById in interface DTM
public Hashtable getElementsWithIDs()
- Specified by:
- getElementsWithIDs in interface DOM
public EntityResolver getEntityResolver()
- Specified by:
- getEntityResolver in interface DTM
public int getExpandedTypeID(String namespace, String localName, int type)
- Specified by:
- getExpandedTypeID in interface DTM
public int getExpandedTypeID(int nodeHandle)
- Specified by:
- getExpandedTypeID in interface DOM
- getExpandedTypeID in interface DTM
public int getFirstAttribute(int nodeHandle)
- Specified by:
- getFirstAttribute in interface DTM
public int getFirstNamespaceNode(int nodeHandle, boolean inScope)
- Specified by:
- getFirstNamespaceNode in interface DTM
public LexicalHandler getLexicalHandler()
- Specified by:
- getLexicalHandler in interface DTM
public String getLocalNameFromExpandedNameID(int ExpandedNameID)
- Specified by:
- getLocalNameFromExpandedNameID in interface DTM
public DTMAxisIterator getNamespaceAxisIterator(int axis, int ns)
- Specified by:
- getNamespaceAxisIterator in interface DOM
public String getNamespaceFromExpandedNameID(int ExpandedNameID)
- Specified by:
- getNamespaceFromExpandedNameID in interface DTM
public String getNamespaceName(int node)
- Specified by:
- getNamespaceName in interface DOM
public String getNamespaceURI(int nodeHandle)
- Specified by:
- getNamespaceURI in interface DTM
public int getNextAttribute(int nodeHandle)
- Specified by:
- getNextAttribute in interface DTM
public int getNextNamespaceNode(int baseHandle, int namespaceHandle, boolean inScope)
- Specified by:
- getNextNamespaceNode in interface DTM
public int getNodeHandle(int nodeId)
Return the node handle from a node identity.
- Specified by:
- getNodeHandle in interface DOM
public int getNodeIdent(int nodehandle)
Return the node identity from a node handle.
- Specified by:
- getNodeIdent in interface DOM
public String getNodeName(int node)
- Specified by:
- getNodeName in interface DOM
- getNodeName in interface DTM
public String getNodeNameX(int node)
- Specified by:
- getNodeNameX in interface DOM
- getNodeNameX in interface DTM
public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iter, int returnType, String value, boolean op)
- Specified by:
- getNodeValueIterator in interface DOM
public DTMAxisIterator getNthDescendant(int node, int n, boolean includeself)
- Specified by:
- getNthDescendant in interface DOM
public SerializationHandler getOutputDomBuilder()
- Specified by:
- getOutputDomBuilder in interface DOM
public int getOwnerDocument(int nodeHandle)
- Specified by:
- getOwnerDocument in interface DTM
public int getParent(int nodeHandle)
public int getPreviousSibling(int nodeHandle)
- Specified by:
- getPreviousSibling in interface DTM
public DOM getResultTreeFrag(int initialSize, int rtfType)
- Specified by:
- getResultTreeFrag in interface DOM
public DOM getResultTreeFrag(int initialSize, int rtfType, boolean addToManager)
- Specified by:
- getResultTreeFrag in interface DOM
public SourceLocator getSourceLocatorFor(int node)
- Specified by:
- getSourceLocatorFor in interface DTM
public XMLString getStringValue(int nodeHandle)
- Specified by:
- getStringValue in interface DTM
public char[] getStringValueChunk(int nodeHandle, int chunkIndex, int[] startAndLen)
- Specified by:
- getStringValueChunk in interface DTM
public int getStringValueChunkCount(int nodeHandle)
- Specified by:
- getStringValueChunkCount in interface DTM
public String getStringValueX(int nodeHandle)
- Specified by:
- getStringValueX in interface DOM
public DTMAxisIterator getTypedAxisIterator(int axis, int type)
- Specified by:
- getTypedAxisIterator in interface DOM
- getTypedAxisIterator in interface DTM
public DTMAxisIterator getTypedChildren(int type)
- Specified by:
- getTypedChildren in interface DOM
public String getUnparsedEntityURI(String name)
- Specified by:
- getUnparsedEntityURI in interface DOM
- getUnparsedEntityURI in interface DTM
public boolean hasChildNodes(int nodeHandle)
- Specified by:
- hasChildNodes in interface DTM
public boolean isAttributeSpecified(int attributeHandle)
- Specified by:
- isAttributeSpecified in interface DTM
public boolean isCharacterElementContentWhitespace(int nodeHandle)
- Specified by:
- isCharacterElementContentWhitespace in interface DTM
public boolean isDocumentAllDeclarationsProcessed(int documentHandle)
- Specified by:
- isDocumentAllDeclarationsProcessed in interface DTM
public boolean isNodeAfter(int firstNodeHandle, int secondNodeHandle)
- Specified by:
- isNodeAfter in interface DTM
public boolean isSupported(String feature, String version)
- Specified by:
- isSupported in interface DTM
public String lookupNamespace(int node, String prefix) throws TransletException
- Specified by:
- lookupNamespace in interface DOM
public NodeList makeNodeList(DTMAxisIterator iter)
- Specified by:
- makeNodeList in interface DOM
public DTMAxisIterator orderNodes(DTMAxisIterator source, int node)
- Specified by:
- orderNodes in interface DOM
public void setDocumentBaseURI(String baseURI)
- Specified by:
- setDocumentBaseURI in interface DTM
public boolean setEscaping(boolean escape) throws SAXException
- Specified by:
- setEscaping in interface SerializationHandler
- Overrides:
- setEscaping in interface EmptySerializer
public void setFeature(String featureId, boolean state)
The DTM interfaces are not used in this class. Implementing the DTM interface is a requirement from MultiDOM. If we have a better way of handling multiple documents, we can get rid of the DTM dependency. The following interfaces are just placeholders. The implementation does not have an impact because they will not be used.
- Specified by:
- setFeature in interface DTM
public void setProperty(String property, Object value)
- Specified by:
- setProperty in interface DTM
public void setupMapping(String[] names, String[] uris, int[] types, String[] namespaces)
- Specified by:
- setupMapping in interface DOM
public String shallowCopy(int node, SerializationHandler handler) throws TransletException
- Specified by:
- shallowCopy in interface DOM
public void startDocument() throws SAXException
We only need to override the endDocument, characters, and setEscaping interfaces. A simple RTF does not have element nodes. We do not need to touch startElement and endElement.
- Specified by:
- startDocument in interface ContentHandler
- Overrides:
- startDocument in interface EmptySerializer
public boolean supportsPreStripping()
- Specified by:
- supportsPreStripping in interface DTM