jd.xml.xslt.template
Class Condition
java.lang.Object
jd.xml.xslt.template.Template
jd.xml.xslt.template.Condition
- public class Condition
- extends Template
A template for the definitions:
<xsl:if
test = boolean-expression>
<!-- Content: template -->
</xsl:if>
and
<xsl:when
test = boolean-expression>
<!-- Content: template -->
</xsl:when>
Condition
public Condition(Expression test,
Template template)
- Create a Condition.
accept
public void accept(TemplateVisitor visitor)
- Specified by:
accept
in class Template
instantiate
public void instantiate(XsltContext context,
ResultBuilder resultBuilder)
- Instantiate the template.
- Specified by:
instantiate
in class Template
test
public boolean test(XsltContext context,
ResultBuilder resultBuilder)
- Instantiate the content if the condition evaluates to true.