Package org.osjava.jardiff.ant
Class JDXSLTProcess.Param
- java.lang.Object
-
- org.osjava.jardiff.ant.JDXSLTProcess.Param
-
- Enclosing class:
- JDXSLTProcess
public static class JDXSLTProcess.Param extends java.lang.ObjectThe Param inner class used to store XSL parameters
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringexpressionThe parameter's valueprivate java.lang.StringifPropertyprivate java.lang.StringnameThe parameter nameprivate org.apache.tools.ant.Projectprojectprivate java.lang.StringunlessProperty
-
Constructor Summary
Constructors Constructor Description Param()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExpression()Get the parameter's valuejava.lang.StringgetName()Get the parameter namevoidsetExpression(java.lang.String expression)The parameter value NOTE : was intended to be an XSL expression.voidsetIf(java.lang.String ifProperty)Set whether this param should be used.voidsetName(java.lang.String name)Set the parameter name.voidsetProject(org.apache.tools.ant.Project project)Set the current projectvoidsetUnless(java.lang.String unlessProperty)Set whether this param should NOT be used.booleanshouldUse()Ensures that the param passes the conditions placed on it withifandunlessproperties.
-
-
-
Method Detail
-
setProject
public void setProject(org.apache.tools.ant.Project project)
Set the current project- Parameters:
project- the current project
-
setName
public void setName(java.lang.String name)
Set the parameter name.- Parameters:
name- the name of the parameter.
-
setExpression
public void setExpression(java.lang.String expression)
The parameter value NOTE : was intended to be an XSL expression.- Parameters:
expression- the parameter's value.
-
getName
public java.lang.String getName() throws org.apache.tools.ant.BuildExceptionGet the parameter name- Returns:
- the parameter name
- Throws:
org.apache.tools.ant.BuildException- if the name is not set.
-
getExpression
public java.lang.String getExpression() throws org.apache.tools.ant.BuildExceptionGet the parameter's value- Returns:
- the parameter value
- Throws:
org.apache.tools.ant.BuildException- if the value is not set.
-
setIf
public void setIf(java.lang.String ifProperty)
Set whether this param should be used. It will be used if the property has been set, otherwise it won't.- Parameters:
ifProperty- name of property
-
setUnless
public void setUnless(java.lang.String unlessProperty)
Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used.- Parameters:
unlessProperty- name of property
-
shouldUse
public boolean shouldUse()
Ensures that the param passes the conditions placed on it withifandunlessproperties.
-
-