org.apache.xalan.xsltc.runtime
public abstract class AbstractTranslet extends Object implements Translet
| Field Summary | |
|---|---|
| static int | CURRENT_TRANSLET_VERSION |
| static int | FIRST_TRANSLET_VERSION |
| static int | VER_SPLIT_NAMES_ARRAY |
| Vector | _cdata |
| String | _doctypePublic |
| String | _doctypeSystem |
| String | _encoding |
| Hashtable | _formatSymbols
Decimal number format symbol handling
|
| boolean | _indent |
| int | _indentamount |
| String | _mediaType |
| String | _method |
| boolean | _omitHeader |
| String | _standalone |
| String | _version |
| Method Summary | |
|---|---|
| void | addAuxiliaryClass(Class auxClass) |
| void | addCdataElement(String name)
Add's a name of an element whose text contents should be output as CDATA |
| void | addDecimalFormat(String name, DecimalFormatSymbols symbols)
Adds a DecimalFormat object to the _formatSymbols hashtable.
|
| Object | addParameter(String name, Object value)
Add a new global parameter if not already in the current frame.
|
| Object | addParameter(String name, Object value, boolean isDefault)
Add a new global or local parameter if not already in the current frame.
|
| void | buildKeyIndex(String name, int node, Object value)
Adds a value to a key/id index |
| void | buildKeyIndex(String name, DOM dom)
Create an empty KeyIndex in the DOM case |
| void | buildKeys(DOM document, DTMAxisIterator iterator, SerializationHandler handler, int root)
This method builds key indexes - it is overridden in the compiled
translet in cases where the |
| void | characters(String string, SerializationHandler handler)
Used by some compiled code as a shortcut for passing strings to the
output handler |
| void | clearParameters()
Clears the parameter stack. |
| void | closeOutputHandler(SerializationHandler handler) |
| KeyIndex | createKeyIndex()
Creates a KeyIndex object of the desired size - don't want to resize! |
| void | displayMessage(String msg)
Pass a message to the message handler - used by Message class. |
| Class | getAuxiliaryClass(String className) |
| DecimalFormat | getDecimalFormat(String name)
Retrieves a named DecimalFormat object from _formatSymbols hashtable. |
| DOMCache | getDOMCache()
Returns the DOM cache used for this translet. |
| KeyIndex | getKeyIndex(String name)
Returns the index for a given key (or id).
|
| String[] | getNamesArray() |
| String[] | getNamespaceArray() |
| Object | getParameter(String name)
Get the value of a parameter from the current frame or
null if undefined. |
| Templates | getTemplates() |
| int[] | getTypesArray() |
| String[] | getUrisArray() |
| boolean | hasIdCall() |
| DOMAdapter | makeDOMAdapter(DOM dom)
Wrap the initial input DOM in a dom adapter. |
| Document | newDocument(String uri, String qname) |
| SerializationHandler | openOutputHandler(String filename, boolean append)
Multiple output document extension.
|
| SerializationHandler | openOutputHandler(String filename) |
| void | popParamFrame()
Pop the topmost parameter frame. |
| void | postInitialization()
After constructing the translet object, this method must be called to
perform any version-specific post-initialization that's required. |
| void | prepassDocument(DOM document)
Give the translet an opportunity to perform a prepass on the document
to extract any information that it can store in an optimized form.
|
| void | printInternalState()
Debugging
|
| void | pushParamFrame()
Push a new parameter frame. |
| void | setAuxiliaryClasses(Hashtable auxClasses) |
| void | setDOMCache(DOMCache cache)
Sets the DOM cache used for additional documents loaded using the
document() function. |
| void | setIndexSize(int size)
This method is used to pass the largest DOM size to the translet.
|
| void | setKeyIndexDom(String name, DOM document)
This method builds key indexes - it is overridden in the compiled
translet in cases where the |
| void | setMessageHandler(MessageHandler handler)
Set the translet's message handler - must implement MessageHandler |
| void | setTemplates(Templates templates) |
| abstract void | transform(DOM document, DTMAxisIterator iterator, SerializationHandler handler)
Main transform() method - this is overridden by the compiled translet |
| void | transform(DOM document, SerializationHandler handler)
Calls transform() with a given output handler |
Parameters: name is the name of the index (the key or ##id) node is the node handle of the node to insert value is the value that will look up the node in the given index
Parameters: name is the name of the index (the key or ##id) dom is the DOM