Class ParserSupports
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.taskdefs.condition.ParserSupports
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- Condition
 
 public class ParserSupports extends ProjectComponent implements Condition Test for the XML parser supporting a particular feature- Since:
- Ant 1.7
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringERROR_BOTH_ATTRIBUTESerror - combined attributes not allowedstatic java.lang.StringERROR_NO_ATTRIBUTESerror - missing attributestatic java.lang.StringERROR_NO_VALUEerror - no valuestatic java.lang.StringFEATUREfeaturestatic java.lang.StringNOT_RECOGNIZEDerror - not recognizedstatic java.lang.StringNOT_SUPPORTEDerror - not supportedstatic java.lang.StringPROPERTYproperty- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description ParserSupports()
 - 
Method SummaryModifier and Type Method Description booleaneval()Is this condition true?booleanevalFeature()Set a featurebooleanevalProperty()Set a propertyvoidsetFeature(java.lang.String feature)Feature to probe for.voidsetProperty(java.lang.String property)Property to probe forvoidsetValue(java.lang.String value)Optional value to set.- 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Field Detail- 
ERROR_BOTH_ATTRIBUTESpublic static final java.lang.String ERROR_BOTH_ATTRIBUTES error - combined attributes not allowed- See Also:
- Constant Field Values
 
 - 
FEATUREpublic static final java.lang.String FEATURE feature- See Also:
- Constant Field Values
 
 - 
PROPERTYpublic static final java.lang.String PROPERTY property- See Also:
- Constant Field Values
 
 - 
NOT_RECOGNIZEDpublic static final java.lang.String NOT_RECOGNIZED error - not recognized- See Also:
- Constant Field Values
 
 - 
NOT_SUPPORTEDpublic static final java.lang.String NOT_SUPPORTED error - not supported- See Also:
- Constant Field Values
 
 - 
ERROR_NO_ATTRIBUTESpublic static final java.lang.String ERROR_NO_ATTRIBUTES error - missing attribute- See Also:
- Constant Field Values
 
 - 
ERROR_NO_VALUEpublic static final java.lang.String ERROR_NO_VALUE error - no value- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setFeaturepublic void setFeature(java.lang.String feature) Feature to probe for.- Parameters:
- feature- the feature to probe for.
 
 - 
setPropertypublic void setProperty(java.lang.String property) Property to probe for- Parameters:
- property- the property to probe for.
 
 - 
setValuepublic void setValue(java.lang.String value) Optional value to set. Converted to a boolean value when setting a property- Parameters:
- value- the value to set.
 
 - 
evalpublic boolean eval() throws BuildExceptionIs this condition true?.- Specified by:
- evalin interface- Condition
- Returns:
- true if the condition is true
- Throws:
- BuildException- if an error occurs
 
 - 
evalFeaturepublic boolean evalFeature() Set a feature- Returns:
- true if the feature could be set
 
 - 
evalPropertypublic boolean evalProperty() Set a property- Returns:
- true if the feature could be set
 
 
- 
 
-