Save This Page
Home » openjdk-7 » com.sun.org.apache.xalan » internal » xsltc » runtime » [javadoc | source]
com.sun.org.apache.xalan.internal.xsltc.runtime
abstract public class: AbstractTranslet [javadoc | source]
java.lang.Object
   com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet

All Implemented Interfaces:
    Translet

Field Summary
public  String _version     
public  String _method     
public  String _encoding     
public  boolean _omitHeader     
public  String _standalone     
public  String _doctypePublic     
public  String _doctypeSystem     
public  boolean _indent     
public  String _mediaType     
public  Vector _cdata     
public  int _indentamount     
public static final  int FIRST_TRANSLET_VERSION     
public static final  int VER_SPLIT_NAMES_ARRAY     
public static final  int CURRENT_TRANSLET_VERSION     
protected  int transletVersion     
protected  String[] namesArray     
protected  String[] urisArray     
protected  int[] typesArray     
protected  String[] namespaceArray     
protected  Templates _templates     
protected  boolean _hasIdCall     
protected  StringValueHandler stringValueHandler     
protected  int pbase    Parameter handling 
protected  int pframe     
protected  ArrayList paramsStack     
public  Hashtable _formatSymbols    Decimal number format symbol handling 
protected  DOMImplementation _domImplementation    DOMImplementation caching for basis library 
Method from com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet Summary:
addAuxiliaryClass,   addCdataElement,   addDecimalFormat,   addParameter,   addParameter,   buildKeyIndex,   buildKeyIndex,   buildKeys,   characters,   clearParameters,   closeOutputHandler,   createKeyIndex,   displayMessage,   getAuxiliaryClass,   getDOMCache,   getDecimalFormat,   getKeyIndex,   getNamesArray,   getNamespaceArray,   getParameter,   getTemplates,   getTypesArray,   getUrisArray,   hasIdCall,   makeDOMAdapter,   newDocument,   openOutputHandler,   openOutputHandler,   popParamFrame,   postInitialization,   prepassDocument,   printInternalState,   pushParamFrame,   setAuxiliaryClasses,   setDOMCache,   setIndexSize,   setKeyIndexDom,   setMessageHandler,   setTemplates,   transferOutputSettings,   transform,   transform
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet Detail:
 public  void addAuxiliaryClass(Class auxClass) 
 public  void addCdataElement(String name) 
    Add's a name of an element whose text contents should be output as CDATA
 public  void addDecimalFormat(String name,
    DecimalFormatSymbols symbols) 
    Adds a DecimalFormat object to the _formatSymbols hashtable. The entry is created with the input DecimalFormatSymbols.
 public final Object addParameter(String name,
    Object value) 
    Add a new global parameter if not already in the current frame. To setParameters of the form {http://foo.bar}xyz This needs to get mapped to an instance variable in the class The mapping created so that the global variables in the generated class become http$colon$$flash$$flash$foo$dot$bar$colon$xyz
 public final Object addParameter(String name,
    Object value,
    boolean isDefault) 
    Add a new global or local parameter if not already in the current frame. The 'isDefault' parameter is set to true if the value passed is the default value from the element's select attribute or element body.
 public  void buildKeyIndex(String name,
    DOM dom) 
    Create an empty KeyIndex in the DOM case
 public  void buildKeyIndex(String name,
    int node,
    Object value) 
    Adds a value to a key/id index
 public  void buildKeys(DOM document,
    DTMAxisIterator iterator,
    SerializationHandler handler,
    int root) throws TransletException 
    This method builds key indexes - it is overridden in the compiled translet in cases where the element is used
 public final  void characters(String string,
    SerializationHandler handler) throws TransletException 
    Used by some compiled code as a shortcut for passing strings to the output handler
 public  void clearParameters() 
    Clears the parameter stack.
 public  void closeOutputHandler(SerializationHandler handler) 
 public KeyIndex createKeyIndex() 
    Creates a KeyIndex object of the desired size - don't want to resize!!!
 public final  void displayMessage(String msg) 
    Pass a message to the message handler - used by Message class.
 public Class getAuxiliaryClass(String className) 
 public DOMCache getDOMCache() 
    Returns the DOM cache used for this translet. Used by the LoadDocument class (if present) when the document() function is used.
 public final DecimalFormat getDecimalFormat(String name) 
    Retrieves a named DecimalFormat object from _formatSymbols hashtable.
 public KeyIndex getKeyIndex(String name) 
    Returns the index for a given key (or id). The index implements our internal iterator interface
 public String[] getNamesArray() 
 public String[] getNamespaceArray() 
 public final Object getParameter(String name) 
    Get the value of a parameter from the current frame or null if undefined.
 public Templates getTemplates() 
 public int[] getTypesArray() 
 public String[] getUrisArray() 
 public boolean hasIdCall() 
 public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException 
    Wrap the initial input DOM in a dom adapter. This adapter is wrapped in a DOM multiplexer if the document() function is used (handled by compiled code in the translet - see compiler/Stylesheet.compileTransform()).
 public Document newDocument(String uri,
    String qname) throws ParserConfigurationException 
 public SerializationHandler openOutputHandler(String filename) throws TransletException 
 public SerializationHandler openOutputHandler(String filename,
    boolean append) throws TransletException 
    Multiple output document extension. See compiler/TransletOutput for actual implementation.
 public final  void popParamFrame() 
    Pop the topmost parameter frame.
 public final  void postInitialization() 
    After constructing the translet object, this method must be called to perform any version-specific post-initialization that's required.
 public final  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. Currently, it only extracts information about attributes of type ID.
 public  void printInternalState() 
    Debugging
 public final  void pushParamFrame() 
    Push a new parameter frame.
 public  void setAuxiliaryClasses(Hashtable auxClasses) 
 public  void setDOMCache(DOMCache cache) 
    Sets the DOM cache used for additional documents loaded using the document() function.
 public  void setIndexSize(int size) 
    This method is used to pass the largest DOM size to the translet. Needed to make sure that the translet can index the whole DOM.
 public  void setKeyIndexDom(String name,
    DOM document) 
    This method builds key indexes - it is overridden in the compiled translet in cases where the element is used
 public final  void setMessageHandler(MessageHandler handler) 
    Set the translet's message handler - must implement MessageHandler
 public  void setTemplates(Templates templates) 
 protected  void transferOutputSettings(SerializationHandler handler) 
    Transfer the output settings to the output post-processor
 public final  void transform(DOM document,
    SerializationHandler handler) throws TransletException 
    Calls transform() with a given output handler
 abstract public  void transform(DOM document,
    DTMAxisIterator iterator,
    SerializationHandler handler) throws TransletException
    Main transform() method - this is overridden by the compiled translet