public interface TSAXElement
The class implementing the TSAXElement interface works in close relationship with a TSAXElementDefaultHandler implementation. This class handles the SAX events and normally produces a set of instances of the associated TSAXElement class. The class implementing the TSAXElement interface also determines the type of objects returned by TXMLObject.getElement, TSAXElementDefaultHandler.getFirstElement and TSAXElementDefaultHandler.getElementIterator.next.
The operations defined by this interface are required for a fully functional TXMLObject. For example, omitting the implementation of setDocname implies that no docname can be set on the TXMLObject. The set/get methods of a TXMLObject are delagated to the corresponding methods of the class implementing this interface.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocname()
Gets the ino:docname of the underlying SAX element, if it exists.
|
java.lang.String |
getDoctype()
Gets the doctype of the underlying SAX element if it exists.
|
java.lang.String |
getId()
Gets the ino:id if of the underlying SAX element, if it exists.
|
void |
setDocname(java.lang.String docname)
Sets the ino:docname on the underlying element.
|
void |
setId(java.lang.String id)
Sets the ino:id on the underlying element.
|
void |
writeTo(java.io.Writer writer)
Serializes the content of the underlying SAX element as a character stream.
|
void setDocname(java.lang.String docname)
docname
- the ino:docname attribute of the XML document.void setId(java.lang.String id)
id
- the ino:id attribute of the XML document.java.lang.String getDoctype()
java.lang.String getDocname()
java.lang.String getId()
void writeTo(java.io.Writer writer)
writer
- the character stream to which the content of the SAX element is written.Copyright (c) 2015 Software AG. All Rights Reserved.