|
||||||||
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.XSLIf
public class XSLIf
Represents an XSLIf Object (xsl:if)
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 | |
---|---|
XSLIf()
Creates a new XSLIf object |
Method Summary | |
---|---|
BooleanResult |
evaluate(XPathContext context)
Evaluates this Conditional using the given XPathContext. |
XPathExpression |
getExpression()
Returns the XPath Expression of this xsl:if |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute with the given name to the given value. |
void |
setExpression(XPathExpression expr)
Sets the test expression for this xsl:if |
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, setNamespace, setTypeName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLIf()
Method Detail |
---|
public XPathExpression getExpression() throws XPathException
XPathException
public BooleanResult evaluate(XPathContext context) throws XPathException
evaluate
in interface Conditional
context
- the XPathContext to evaluate this conditional with.
XPathException
public void setAttribute(java.lang.String name, java.lang.String value) throws XSLException
setAttribute
in class XSLObject
name
- the name of the attribute to setvalue
- the value to set the attribute to
XSLException
- if this XSLObject does not allow attributes
with the given name, or if the attribute is read onlypublic void setExpression(XPathExpression expr)
expr
- the XPathExpression for this xsl:if
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |