|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.templates.ElemTemplateElement | +--weblogic.apache.xalan.templates.ElemForEach
Implement xsl:for-each.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
boolean |
m_doc_cache_off
This is set by an "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. |
Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber,
m_hasVariableDecl,
m_parentNode |
Constructor Summary | |
ElemForEach()
Construct a element representing xsl:for-each. |
Method Summary | |
ElemTemplateElement |
appendChild(ElemTemplateElement newChild)
Add a child to the child list. |
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 |
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. |
void |
setSelect(XPath xpath)
Set the "select" attribute. |
void |
setSortElem(ElemSort sortElem)
Set a xsl:sort element associated with this element. |
weblogic.apache.xml.dtm.DTMIterator |
sortNodes(XPathContext xctxt,
java.util.Vector keys,
weblogic.apache.xml.dtm.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 |
public boolean m_doc_cache_off
protected Expression m_selectExpression
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
public void endCompose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
public int getSortElemCount()
public ElemSort getSortElem(int i)
i
- Index of xsl:sort element to getpublic void setSortElem(ElemSort sortElem)
sortElem
- xsl:sort element to setpublic int getXSLToken()
Constants
public java.lang.String getNodeName()
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
transformer
- non-null reference to the the current transform-time state.protected ElemTemplateElement getTemplateMatch()
public weblogic.apache.xml.dtm.DTMIterator sortNodes(XPathContext xctxt, java.util.Vector keys, weblogic.apache.xml.dtm.DTMIterator sourceNodes) throws javax.xml.transform.TransformerException
xctxt
- The XPath runtime state for the sort.keys
- Vector of sort keyxsourceNodes
- Iterator of nodes to sortpublic void transformSelectedNodes(TransformerImpl transformer) throws javax.xml.transform.TransformerException
transformer
- non-null reference to the the current transform-time state.template
- The owning template context.public ElemTemplateElement appendChild(ElemTemplateElement newChild)
newChild
- Child to add to child list
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |