|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.ElemForEach
public class ElemForEach
Implement xsl:for-each.
Field Summary | |
---|---|
(package private) static boolean |
DEBUG
Set true to request some basic status reports |
boolean |
m_doc_cache_off
This is set by an "xalan-doc-cache-off" pi, or the old "xalan:doc-cache-off" pi. |
protected Expression |
m_selectExpression
The "select" expression. |
protected java.util.Vector |
m_sortElems
Vector containing the xsl:sort elements associated with this element. |
protected XPath |
m_xpath
Used to fix bug#16889 Store XPath away for later processing. |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
---|
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode |
Fields inherited from class org.apache.xml.utils.UnImplNode |
---|
actualEncoding, fDocumentURI |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
ElemForEach()
Construct a element representing xsl:for-each. |
Method Summary | |
---|---|
ElemTemplateElement |
appendChild(ElemTemplateElement newChild)
Add a child to the child list. |
void |
callChildVisitors(XSLTVisitor visitor,
boolean callAttributes)
Call the children visitors. |
void |
compose(StylesheetRoot sroot)
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 |
endCompose(StylesheetRoot sroot)
This after the template's children have been composed. |
void |
execute(TransformerImpl transformer)
Execute the xsl:for-each transformation |
Expression |
getExpression()
Get the raw Expression object that this class wraps. |
java.lang.String |
getNodeName()
Return the node name. |
Expression |
getSelect()
Get the "select" attribute. |
ElemSort |
getSortElem(int i)
Get a xsl:sort element associated with this element. |
int |
getSortElemCount()
Get the count xsl:sort elements associated with this element. |
protected ElemTemplateElement |
getTemplateMatch()
Get template element associated with this |
int |
getXSLToken()
Get an int constant identifying the type of element. |
private void |
readObject(java.io.ObjectInputStream os)
|
void |
setExpression(Expression exp)
Set the raw expression object for this object. |
void |
setSelect(XPath xpath)
Set the "select" attribute. |
void |
setSortElem(ElemSort sortElem)
Set a xsl:sort element associated with this element. |
DTMIterator |
sortNodes(XPathContext xctxt,
java.util.Vector keys,
DTMIterator sourceNodes)
Sort given nodes |
void |
transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
static final boolean DEBUG
public boolean m_doc_cache_off
protected Expression m_selectExpression
protected XPath m_xpath
protected java.util.Vector m_sortElems
Constructor Detail |
---|
public ElemForEach()
Method Detail |
---|
public void setSelect(XPath xpath)
xpath
- The XPath expression for the "select" attribute.public Expression getSelect()
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public void endCompose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
endCompose
in class ElemTemplateElement
javax.xml.transform.TransformerException
public int getSortElemCount()
public ElemSort getSortElem(int i)
i
- Index of xsl:sort element to get
public void setSortElem(ElemSort sortElem)
sortElem
- xsl:sort element to setpublic int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemTemplateElement
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemTemplateElement
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
protected ElemTemplateElement getTemplateMatch()
public DTMIterator sortNodes(XPathContext xctxt, java.util.Vector keys, DTMIterator sourceNodes) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime state for the sort.keys
- Vector of sort keyxsourceNodes
- Iterator of nodes to sort
javax.xml.transform.TransformerException
public void transformSelectedNodes(TransformerImpl transformer) throws javax.xml.transform.TransformerException
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
- Thrown in a variety of circumstances.public ElemTemplateElement appendChild(ElemTemplateElement newChild)
appendChild
in class ElemTemplateElement
newChild
- Child to add to child list
public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
callChildVisitors
in class ElemTemplateElement
visitor
- The visitor whose appropriate method will be called.public Expression getExpression()
ExpressionOwner
getExpression
in interface ExpressionOwner
ExpressionOwner.getExpression()
public void setExpression(Expression exp)
ExpressionOwner
setExpression
in interface ExpressionOwner
exp
- the raw Expression object, which should not normally be null.ExpressionOwner.setExpression(Expression)
private void readObject(java.io.ObjectInputStream os) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |