Class ParserSupports
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.ParserSupports
Test for the XML parser supporting a particular feature
- Since:
- Ant 1.7
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringerror - combined attributes not allowedstatic final Stringerror - missing attributestatic final Stringerror - no valuestatic final Stringfeaturestatic final Stringerror - not recognizedstatic final Stringerror - not supportedstatic final StringpropertyFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleaneval()Is this condition true?booleanSet a featurebooleanSet a propertyvoidsetFeature(String feature) Feature to probe for.voidsetProperty(String property) Property to probe forvoidOptional value to set.Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Field Details- 
ERROR_BOTH_ATTRIBUTESerror - combined attributes not allowed- See Also:
 
- 
FEATUREfeature- See Also:
 
- 
PROPERTYproperty- See Also:
 
- 
NOT_RECOGNIZEDerror - not recognized- See Also:
 
- 
NOT_SUPPORTEDerror - not supported- See Also:
 
- 
ERROR_NO_ATTRIBUTESerror - missing attribute- See Also:
 
- 
ERROR_NO_VALUEerror - no value- See Also:
 
 
- 
- 
Constructor Details- 
ParserSupportspublic ParserSupports()
 
- 
- 
Method Details- 
setFeatureFeature to probe for.- Parameters:
- feature- the feature to probe for.
 
- 
setPropertyProperty to probe for- Parameters:
- property- the property to probe for.
 
- 
setValueOptional value to set. Converted to a boolean value when setting a property- Parameters:
- value- the value to set.
 
- 
evalIs 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
 
 
-