|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.ParserSupports
public class ParserSupports
Test for the XML parser supporting a particular feature
| Field Summary | |
|---|---|
static java.lang.String |
ERROR_BOTH_ATTRIBUTES
error - combined attributes not allowed |
static java.lang.String |
ERROR_NO_ATTRIBUTES
error - missing attribute |
static java.lang.String |
ERROR_NO_VALUE
error - no value |
static java.lang.String |
FEATURE
feature |
static java.lang.String |
NOT_RECOGNIZED
error - not recognized |
static java.lang.String |
NOT_SUPPORTED
error - not supported |
static java.lang.String |
PROPERTY
property |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
ParserSupports()
|
|
| Method Summary | |
|---|---|
boolean |
eval()
Is this condition true? |
boolean |
evalFeature()
Set a feature |
boolean |
evalProperty()
Set a property |
void |
setFeature(java.lang.String feature)
Feature to probe for. |
void |
setProperty(java.lang.String property)
Property to probe for |
void |
setValue(java.lang.String value)
Optional value to set. |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ERROR_BOTH_ATTRIBUTES
public static final java.lang.String FEATURE
public static final java.lang.String PROPERTY
public static final java.lang.String NOT_RECOGNIZED
public static final java.lang.String NOT_SUPPORTED
public static final java.lang.String ERROR_NO_ATTRIBUTES
public static final java.lang.String ERROR_NO_VALUE
| Constructor Detail |
|---|
public ParserSupports()
| Method Detail |
|---|
public void setFeature(java.lang.String feature)
feature - the feature to probe for.public void setProperty(java.lang.String property)
property - the property to probe for.public void setValue(java.lang.String value)
value - the value to set.
public boolean eval()
throws BuildException
eval in interface ConditionBuildException - if an error occurspublic boolean evalFeature()
public boolean evalProperty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||