|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.utils.UnImplNode | +--org.apache.xalan.templates.ElemTemplateElement
**For advanced use only** An instance of this class represents an element inside an xsl:template class. It has a single "execute" method which is expected to perform the given action on the result tree. This class acts like a Element node, and implements the Element interface, but is not a full implementation of that interface... it only implements enough for basic traversal of the tree.
Stylesheet
, Serialized FormConstructor Summary | |
ElemTemplateElement()
**For advanced use only** Construct a template element instance. |
Method Summary | |
Node |
appendChild(Node newChild)
**For advanced use only** Add a child to the child list. |
void |
compose()
**For advanced use only** This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition. |
void |
error(int msg,
java.lang.Object[] args)
**For advanced use only** Throw a template element runtime error. |
void |
execute(TransformerImpl transformer,
Node sourceNode,
QName mode)
**For advanced use only** Execute the element's primary function. |
java.lang.String |
getBaseIdentifier()
**For advanced use only** Return the base identifier. |
NodeList |
getChildNodes()
**For advanced use only** Return the nodelist (same reference). |
int |
getColumnNumber()
**For advanced use only** Return the column number where the current document event ends. |
java.util.Vector |
getDeclaredPrefixes()
**For advanced use only** Return a table that contains all prefixes available within this element context. |
Node |
getDOMBackPointer()
**For advanced use only** If this stylesheet was created from a DOM, get the DOM backpointer that this element originated from. |
Node |
getFirstChild()
**For advanced use only** Get the first child as a Node. |
ElemTemplateElement |
getFirstChildElem()
**For advanced use only** Get the first child as a ElemTemplateElement. |
Node |
getLastChild()
**For advanced use only** Get the last child. |
int |
getLength()
**For advanced use only** NodeList method: Count the immediate children of this node |
int |
getLineNumber()
**For advanced use only** Return the line number where the current document event ends. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix)
**For advanced use only** Given a namespace, get the corrisponding prefix. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix,
Node context)
**For advanced use only** Fullfill the PrefixResolver interface. |
Node |
getNextSibling()
**For advanced use only** Get the next sibling (as a Node) or return null. |
ElemTemplateElement |
getNextSiblingElem()
**For advanced use only** Get the next sibling (as a ElemTemplateElement) or return null. |
java.lang.String |
getNodeName()
**For advanced use only** Return the node name. |
short |
getNodeType()
**For advanced use only** Get the type of the node. |
Document |
getOwnerDocument()
**For advanced use only** Get the stylesheet owner. |
ElemTemplateElement |
getParentElem()
**For advanced use only** Get the parent as an ElemTemplateElement. |
Node |
getParentNode()
**For advanced use only** Get the parent as a Node. |
java.util.Vector |
getPrefixes()
**For advanced use only** Return a table that contains all prefixes available within this element context. |
Node |
getPreviousSibling()
**For advanced use only** Get the previous sibling (as a Node) or return null. |
java.lang.String |
getPublicId()
**For advanced use only** Return the public identifier for the current document event. |
Stylesheet |
getStylesheet()
**For advanced use only** Get the owning stylesheet. |
StylesheetComposed |
getStylesheetComposed()
**For advanced use only** Get the owning "composed" stylesheet. |
StylesheetRoot |
getStylesheetRoot()
**For advanced use only** Get the owning root stylesheet. |
java.lang.String |
getSystemId()
**For advanced use only** Return the system identifier for the current document event. |
java.lang.String |
getTagName()
**For advanced use only** Return the element name. |
boolean |
getXmlSpace()
**For advanced use only** Get the "xml:space" attribute. |
int |
getXSLToken()
**For advanced use only** Get an integer representation of the element type. |
boolean |
hasChildNodes()
**For advanced use only** Tell if there are child nodes. |
boolean |
isCompiledTemplate()
**For advanced use only** Tell if this template is a compiled template. |
Node |
item(int index)
**For advanced use only** NodeList method: Return the Nth immediate child of this node, or null if the index is out of bounds. |
Node |
removeChild(ElemTemplateElement childETE)
**For advanced use only** Remove a child. |
Node |
replaceChild(Node newChild,
Node oldChild)
**For advanced use only** Replace the old child with a new child. |
void |
resolvePrefixTables()
**For advanced use only** Combine the parent's namespaces with this namespace for fast processing, taking care to reference the parent's namespace if this namespace adds nothing new. |
void |
runtimeInit(TransformerImpl transformer)
**For advanced use only** This function will be called on top-level elements only, just before the transform begins. |
void |
setDOMBackPointer(Node n)
**For advanced use only** If this stylesheet was created from a DOM, set the DOM backpointer that this element originated from. |
void |
setLocaterInfo(Locator locator)
**For advanced use only** Set the location information for this element. |
void |
setPrefixes(NamespaceSupport nsSupport)
**For advanced use only** From the SAX2 helper class, set the namespace table for this element. |
void |
setPrefixes(NamespaceSupport nsSupport,
boolean excludeXSLDecl)
**For advanced use only** From the SAX2 helper class, set the namespace table for this element. |
void |
setXmlSpace(boolean v)
**For advanced use only** Set the "xml:space" attribute. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ElemTemplateElement()
transformer
- The XSLT Processor.stylesheetTree
- The owning stylesheet.name
- The name of the element.atts
- The element attributes.lineNumber
- The line in the XSLT file that the element occurs on.columnNumber
- The column index in the XSLT file that the element occurs on.Method Detail |
public boolean isCompiledTemplate()
public int getXSLToken()
Constants
public java.lang.String getNodeName()
public void runtimeInit(TransformerImpl transformer) throws SAXException
transformer
- The XSLT Processor.public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException
transformer
- The XSLT Processor.sourceNode
- The current context node.mode
- The current mode.public StylesheetComposed getStylesheetComposed()
public Stylesheet getStylesheet()
public StylesheetRoot getStylesheetRoot()
public void compose()
public void error(int msg, java.lang.Object[] args)
msg
- Description of the error that occured.public Node appendChild(Node newChild) throws DOMException
newChild
- public boolean hasChildNodes()
public short getNodeType()
public NodeList getChildNodes()
public Node removeChild(ElemTemplateElement childETE) throws DOMException
oldChild
- The child to remove. This operation is a no-op
if oldChild is not a child of this node.public Node replaceChild(Node newChild, Node oldChild) throws DOMException
public int getLength()
public Node item(int index)
index
- public Document getOwnerDocument()
public java.lang.String getTagName()
public java.lang.String getBaseIdentifier()
public int getLineNumber()
getColumnNumber()
public int getColumnNumber()
getLineNumber()
public java.lang.String getPublicId()
This will be the public identifier
getSystemId()
public java.lang.String getSystemId()
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
getPublicId()
public void setLocaterInfo(Locator locator)
public void setXmlSpace(boolean v)
public boolean getXmlSpace()
public java.util.Vector getDeclaredPrefixes()
public void setPrefixes(NamespaceSupport nsSupport) throws SAXException
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl) throws SAXException
public java.lang.String getNamespaceForPrefix(java.lang.String prefix, Node context)
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
public java.util.Vector getPrefixes()
public void resolvePrefixTables() throws SAXException
public Node getParentNode()
public ElemTemplateElement getParentElem()
public Node getNextSibling()
public Node getPreviousSibling()
public ElemTemplateElement getNextSiblingElem()
public Node getFirstChild()
public ElemTemplateElement getFirstChildElem()
public Node getLastChild()
public Node getDOMBackPointer()
public void setDOMBackPointer(Node n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |