org.apache.tools.ant.taskdefs.condition
Class ParserSupports
- Cloneable, Condition
public class ParserSupports
Test for the XML parser supporting a particular feature
ERROR_BOTH_ATTRIBUTES
public static final String ERROR_BOTH_ATTRIBUTES
error - combined attributes not allowed
ERROR_NO_ATTRIBUTES
public static final String ERROR_NO_ATTRIBUTES
error - missing attribute
ERROR_NO_VALUE
public static final String ERROR_NO_VALUE
error - no value
FEATURE
public static final String FEATURE
feature
NOT_RECOGNIZED
public static final String NOT_RECOGNIZED
error - not recognized
NOT_SUPPORTED
public static final String NOT_SUPPORTED
error - not supported
PROPERTY
public static final String PROPERTY
property
evalFeature
public boolean evalFeature()
Set a feature
- true if the feature could be set
evalProperty
public boolean evalProperty()
Set a property
- true if the feature could be set
setFeature
public void setFeature(String feature)
Feature to probe for.
feature
- the feature to probe for.
setProperty
public void setProperty(String property)
Property to probe for
property
- the property to probe for.
setValue
public void setValue(String value)
Optional value to set.
Converted to a boolean value when setting a property
value
- the value to set.