|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TSAXElement
TSAXElement interface represents an XML element. You must provide a class that implements this interface when using a SAX object model and intend to use the SAX object model to process Tamino query results. An implementation is also required if there exists a meaningful implementation of the getRootElement method of the class implementing the TSAXDocument interface.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |