|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.types.DataType | +--org.apache.anteater.test.BaseDataType
Root class for all the Anteater types. Has support for a 'debug' attribute, as well as 'proxying' support where one DataType refers to another via the 'refid' attribute.
Field Summary | |
protected int |
debug
Debug level for this task. |
protected boolean |
debugWasSet
Whether debug was previously setup. |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
BaseDataType()
|
Method Summary | |
void |
debug(String message)
|
protected String |
getDataTypeName()
Sets the name used for this datatype instance. |
int |
getDebug()
Return the debug level. |
Group |
getGroup()
|
protected BaseDataType |
getRef(org.apache.tools.ant.Project p)
Assuming this BaseDataType is a reference to a real one (has a refid attr), this method will return the one this points to. |
void |
print(String message)
|
void |
println(String message)
|
void |
setDebug(int debug)
Set the debug level. |
void |
setGroup(Group group)
Sets the group that this task belongs to. |
void |
setGroup(String group)
Sets the group that this task belongs to. |
void |
setRefid(org.apache.tools.ant.types.Reference r)
Makes this instance in effect a reference to another FileList instance. |
Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int debug
protected boolean debugWasSet
debug
was previously setup. This is used so
that local debug attributes are not overridden by the value of a
debug attribute inherited from its parent.
In other words, you can specify a debug attribute in a parent element, and override it in a sub-element.
Constructor Detail |
public BaseDataType()
Method Detail |
public void setGroup(String group)
setGroup
in interface Groupable
group
- String id of an existing group.public void setGroup(Group group)
setGroup
in interface Groupable
group
- Group object to add this task to.public Group getGroup()
public void setDebug(int debug)
debug
- an int
valuepublic int getDebug()
int
valuepublic void debug(String message)
public void println(String message)
public void print(String message)
public void setRefid(org.apache.tools.ant.types.Reference r) throws org.apache.tools.ant.BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid
in class org.apache.tools.ant.types.DataType
org.apache.tools.ant.BuildException
protected BaseDataType getRef(org.apache.tools.ant.Project p)
protected String getDataTypeName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |