|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xslt.UnImplNode | +--org.apache.xalan.xslt.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 FormField Summary | |
int |
m_columnNumber
**For advanced use only** The columnOffset where the element occurs in the xsl file. |
boolean |
m_defaultSpace
**For advanced use only** Tell if this element has the default space handling turned off or on according to the xml:space attribute. |
java.lang.String |
m_elemName
**For advanced use only** The name of the element. |
boolean |
m_finishedConstruction
**For advanced use only** Tell if we've finished construction. |
int |
m_lineNumber
**For advanced use only** The line number where the element occurs in the xsl file. |
ElemTemplateElement |
m_parentNode
**For advanced use only** Parent node. |
Stylesheet |
m_stylesheet
**For advanced use only** The owning stylesheet. |
Constructor Summary | |
ElemTemplateElement(XSLTEngineImpl processor,
Stylesheet stylesheetTree,
java.lang.String name,
org.xml.sax.AttributeList atts,
int lineNumber,
int columnNumber)
**For advanced use only** Construct a template element instance. |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
**For advanced use only** Add a child to the child list. |
java.lang.String |
childrenToString(XSLTEngineImpl processor,
org.w3c.dom.Node sourceTree,
org.w3c.dom.Node sourceNode,
QName mode)
**For advanced use only** Take the contents of a template element, process it, and convert it to a string. |
void |
error(int msg,
java.lang.Object[] args)
**For advanced use only** Throw a template element runtime error. |
void |
execute(XSLTEngineImpl processor,
org.w3c.dom.Node sourceTree,
org.w3c.dom.Node sourceNode,
QName mode)
**For advanced use only** Execute the element's primary function. |
void |
executeChildren(XSLTEngineImpl processor,
org.w3c.dom.Node sourceTree,
org.w3c.dom.Node sourceNode,
QName mode)
**For advanced use only** Process the children of a template. |
java.lang.String |
getBaseIdentifier()
**For advanced use only** Return the base identifier. |
org.w3c.dom.NodeList |
getChildNodes()
**For advanced use only** Return the nodelist (same reference). |
org.w3c.dom.Node |
getFirstChild()
**For advanced use only** Get the first child |
org.w3c.dom.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 |
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,
org.w3c.dom.Node context)
**For advanced use only** Given a namespace, get the corrisponding prefix. |
org.w3c.dom.Node |
getNextSibling()
**For advanced use only** Get the next sibling 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. |
org.w3c.dom.Document |
getOwnerDocument()
**For advanced use only** Get the stylesheet owner. |
org.w3c.dom.Node |
getParentNode()
**For advanced use only** Get the parent. |
java.lang.String |
getTagName()
**For advanced use only** Return the element name. |
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. |
static boolean |
isSpace(char ch)
**For advanced use only** Returns whether the specified ch conforms to the XML 1.0 definition of whitespace. |
boolean |
isWhiteSpace(java.lang.String string)
**For advanced use only** Tell if the string is whitespace. |
org.w3c.dom.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. |
void |
processLocatedNode(XPathSupport execContext,
org.w3c.dom.Node sourceNode,
java.lang.Object callbackInfo)
**For advanced use only** Implementation of NodeCallback interface. |
Methods inherited from class org.apache.xalan.xslt.UnImplNode |
cloneNode,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getAttributes,
getElementsByTagName,
getElementsByTagNameNS,
getLocalName,
getNamespaceURI,
getNodeValue,
getPrefix,
getPreviousSibling,
hasAttribute,
hasAttributeNS,
hasAttributes,
insertBefore,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
replaceChild,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setNodeValue,
setPrefix,
supports |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public Stylesheet m_stylesheet
public int m_lineNumber
public int m_columnNumber
public boolean m_defaultSpace
public boolean m_finishedConstruction
public java.lang.String m_elemName
public ElemTemplateElement m_parentNode
Constructor Detail |
public ElemTemplateElement(XSLTEngineImpl processor, Stylesheet stylesheetTree, java.lang.String name, org.xml.sax.AttributeList atts, int lineNumber, int columnNumber) throws org.xml.sax.SAXException
processor
- 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 java.lang.String getNamespaceForPrefix(java.lang.String prefix, org.w3c.dom.Node context)
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
public void execute(XSLTEngineImpl processor, org.w3c.dom.Node sourceTree, org.w3c.dom.Node sourceNode, QName mode) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
processor
- The XSLT Processor.sourceTree
- The input source tree.sourceNode
- The current context node.mode
- The current mode.public void executeChildren(XSLTEngineImpl processor, org.w3c.dom.Node sourceTree, org.w3c.dom.Node sourceNode, QName mode) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
processor
- The XSLT processor instance.sourceTree
- The input source tree.sourceNode
- The current context node.mode
- The current mode.public java.lang.String childrenToString(XSLTEngineImpl processor, org.w3c.dom.Node sourceTree, org.w3c.dom.Node sourceNode, QName mode) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
processor
- The XSLT processor instance.sourceTree
- The primary source tree.sourceNode
- The current source node context.mode
- The current mode.public int getXSLToken()
Constants.java
public static boolean isSpace(char ch)
S
for details.ch
- Character to check as XML whitespace.public boolean isWhiteSpace(java.lang.String string)
string
- The string in question.public void processLocatedNode(XPathSupport execContext, org.w3c.dom.Node sourceNode, java.lang.Object callbackInfo) throws org.xml.sax.SAXException
execContext
- Execution context.sourceNode
- The source node that was located.callbackInfo
- Opaque info for the caller's benefit.public void error(int msg, java.lang.Object[] args)
msg
- Description of the error that occured.public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
newChild
- public boolean hasChildNodes()
public short getNodeType()
public org.w3c.dom.Node getParentNode()
public org.w3c.dom.NodeList getChildNodes()
public org.w3c.dom.Node getFirstChild()
public org.w3c.dom.Node getLastChild()
public org.w3c.dom.Node getNextSibling()
public int getLength()
public org.w3c.dom.Node item(int index)
index
- public org.w3c.dom.Document getOwnerDocument()
public java.lang.String getTagName()
public java.lang.String getNodeName()
public java.lang.String getBaseIdentifier()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |