|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xslt.XSLObject
org.exolab.adaptx.xslt.Selection
public class Selection
Represents a Basic XSL Selection Object. xsl:if, xsl:apply-templates, xsl:for-each
Field Summary |
---|
Fields inherited from class org.exolab.adaptx.xslt.XSLObject |
---|
APPLY_IMPORTS, APPLY_TEMPLATES, ARG, ATTRIBUTE, ATTRIBUTE_SET, CALL_TEMPLATE, CDATA, CHOOSE, COMMENT, CONTENTS, COPY, COPY_OF, ELEMENT, ENTITY_REF, FOR_EACH, FUNCTIONS, ID, IF, IMPORT, INCLUDE, KEY, LITERAL, LOCALE, MESSAGE, NUMBER, OTHERWISE, OUTPUT, PARAM, PI, PRESERVE_SPACE, SCRIPT, SORT, STRIP_SPACE, STYLESHEET, TEMPLATE, TEXT, VALUE_OF, VARIABLE, WHEN, WITH_PARAM |
Constructor Summary | |
---|---|
Selection(short type)
Creates a new Selection of the give type. |
Method Summary | |
---|---|
XPathExpression |
getSelectExpr()
|
XSLSort[] |
getSortKeys()
Returns an Array of any XSLSort elements for this Selection. Only xsl:apply-templates or xsl:for-each can have xsl:sort elements |
boolean |
hasSortKeys()
Returns true if xsl:sort keys have been specified |
NodeSet |
selectNodes(ProcessorState ps)
Selects all nodes that match this Selection's SelectExpr using the given context node and ids. |
Methods inherited from class org.exolab.adaptx.xslt.XSLObject |
---|
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selection(short type)
type
- the type of Selection
Method Detail |
---|
public XPathExpression getSelectExpr()
public XSLSort[] getSortKeys()
public boolean hasSortKeys()
getSortKeys
public NodeSet selectNodes(ProcessorState ps) throws XPathException
context
- the Node context for evaluate the
SelectExpr withidRefs
- the ID reference table to resolve IDExpr(s)
XPathException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |