BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.apache.xalan.processor
Class CompiledTemplate

java.lang.Object
  |
  +--weblogic.apache.xml.utils.UnImplNode
        |
        +--weblogic.apache.xalan.templates.ElemTemplateElement
              |
              +--weblogic.apache.xalan.templates.ElemTemplate
                    |
                    +--weblogic.apache.xalan.processor.CompiledTemplate

public abstract class CompiledTemplate
extends ElemTemplate
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.Object[] m_interpretArray
          Object[] m_interpretArray is used to bind to nodes we don't yet know how to compile.
protected  java.util.Hashtable m_nsThreadContexts
           
 
Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement
m_docOrderNumber, m_parentNode
 
Constructor Summary
CompiledTemplate(ElemTemplate original, int lineNumber, int columnNumber, java.lang.String publicId, java.lang.String systemId, java.lang.Object[] interpretArray)
          public constructor: Copy values from original template object, pick up "uncompiled children" array from compilation/instantiation process, and set the Locator information explicitly.
 
Method Summary
abstract  void execute(TransformerImpl transformer, org.w3c.dom.Node sourceNode, QName mode)
          Main entry point for the Template transformation.
 java.lang.String getNamespaceForPrefix(java.lang.String nsPrefix)
          Accessor to let interpretive children query current namespace state.
 boolean isCompiledTemplate()
          Tell if this template is a compiled template.
 
Methods inherited from class weblogic.apache.xalan.templates.ElemTemplate
getMatch, getMode, getName, getNodeName, getPriority, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getXSLToken, recompose, setLocaterInfo, setMatch, setMode, setName, setPriority, setStylesheet
 
Methods inherited from class weblogic.apache.xalan.templates.ElemTemplateElement
appendChild, canStripWhiteSpace, compareTo, compose, containsExcludeResultPrefix, error, error, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getFirstChild, getFirstChildElem, getLastChild, getLength, getLineNumber, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getParentElem, getParentNode, getPrefixes, getPreviousSibling, getTagName, getUid, getXmlSpace, hasChildNodes, isValidNCName, item, removeChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
 
Methods inherited from class weblogic.apache.xml.utils.UnImplNode
appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLocalName, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSpecified, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertBefore, insertData, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, setValue, splitText, substringData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_interpretArray

protected java.lang.Object[] m_interpretArray
Object[] m_interpretArray is used to bind to nodes we don't yet know how to compile. Set at construction. This array resembles the DOM's getChildren().item(), but includes some things that aren't children, and is our primary access point for its contents even when they are kids.

m_nsThreadContexts

protected transient java.util.Hashtable m_nsThreadContexts
Constructor Detail

CompiledTemplate

public CompiledTemplate(ElemTemplate original,
                        int lineNumber,
                        int columnNumber,
                        java.lang.String publicId,
                        java.lang.String systemId,
                        java.lang.Object[] interpretArray)
public constructor: Copy values from original template object, pick up "uncompiled children" array from compilation/instantiation process, and set the Locator information explicitly. (I want the locator to be visible as literals in the generated code, for debugging purposes.)
Method Detail

isCompiledTemplate

public boolean isCompiledTemplate()
Tell if this template is a compiled template.

Overrides:
isCompiledTemplate in class ElemTemplateElement

getNamespaceForPrefix

public java.lang.String getNamespaceForPrefix(java.lang.String nsPrefix)
Accessor to let interpretive children query current namespace state. Note that unlike the interpreted version, the namespace state of this code changes over time... and that we need to maintain a unique state for each thread if we're to support multitasking.

Overrides:
getNamespaceForPrefix in class ElemTemplateElement

execute

public abstract void execute(TransformerImpl transformer,
                             org.w3c.dom.Node sourceNode,
                             QName mode)
                      throws javax.xml.transform.TransformerException
Main entry point for the Template transformation. It's abstract in CompiledTemplate, but is filled in when the actual template code is synthesized.

Overrides:
execute in class ElemTemplate

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.