|
|||||||||
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.taskdefs.condition.ConditionBase
public abstract class ConditionBase
Baseclass for the <condition> task as well as several conditions - ensures that the types of conditions inside the task and the "container" conditions are in sync.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
protected |
ConditionBase()
Simple constructor. |
protected |
ConditionBase(java.lang.String taskName)
Constructor that takes the name of the task in the task name. |
Method Summary | |
---|---|
void |
add(Condition c)
Add an arbitrary condition |
void |
addAnd(And a)
Add an <and> condition "container". |
void |
addAvailable(Available a)
Add an <available> condition. |
void |
addChecksum(Checksum c)
Add an <checksum> condition. |
void |
addContains(Contains test)
Add a <contains> condition. |
void |
addEquals(Equals e)
Add an <equals> condition. |
void |
addFilesMatch(FilesMatch test)
Add a <filesmatch> condition. |
void |
addHttp(Http h)
Add an <http> condition. |
void |
addIsFalse(IsFalse test)
Add a <isfalse> condition. |
void |
addIsFileSelected(IsFileSelected test)
Add an <isfileselected> condition. |
void |
addIsReference(IsReference i)
Add an <isreference> condition. |
void |
addIsSet(IsSet i)
Add an <isset> condition. |
void |
addIsTrue(IsTrue test)
Add a <istrue> condition. |
void |
addNot(Not n)
Add an <not> condition "container". |
void |
addOr(Or o)
Add an <or> condition "container". |
void |
addOs(Os o)
Add an <os> condition. |
void |
addSocket(Socket s)
Add a <socket> condition. |
void |
addUptodate(UpToDate u)
Add an <uptodate> condition. |
protected int |
countConditions()
Count the conditions. |
java.lang.Object |
createDynamicElement(java.lang.String name)
Create a dynamically discovered condition. |
protected java.util.Enumeration |
getConditions()
Iterate through all conditions. |
java.lang.String |
getTaskName()
Returns the name to use in logging messages. |
void |
setTaskName(java.lang.String name)
Sets the name to use in logging messages. |
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 |
Constructor Detail |
---|
protected ConditionBase()
protected ConditionBase(java.lang.String taskName)
taskName
- the name of the task.Method Detail |
---|
protected int countConditions()
protected final java.util.Enumeration getConditions()
public void setTaskName(java.lang.String name)
name
- The name to use in logging messages.
Should not be null
.public java.lang.String getTaskName()
public void addAvailable(Available a)
a
- an available conditionpublic void addChecksum(Checksum c)
c
- a Checksum conditionpublic void addUptodate(UpToDate u)
u
- an UpToDate conditionpublic void addNot(Not n)
n
- a Not conditionpublic void addAnd(And a)
a
- an And conditionpublic void addOr(Or o)
o
- an Or conditionpublic void addEquals(Equals e)
e
- an Equals conditionpublic void addOs(Os o)
o
- an Os conditionpublic void addIsSet(IsSet i)
i
- an IsSet conditionpublic void addHttp(Http h)
h
- an Http conditionpublic void addSocket(Socket s)
s
- a Socket conditionpublic void addFilesMatch(FilesMatch test)
test
- a FilesMatch conditionpublic void addContains(Contains test)
test
- a Contains conditionpublic void addIsTrue(IsTrue test)
test
- an IsTrue conditionpublic void addIsFalse(IsFalse test)
test
- an IsFalse conditionpublic void addIsReference(IsReference i)
i
- an IsReference conditionpublic void addIsFileSelected(IsFileSelected test)
test
- the conditionpublic void add(Condition c)
c
- a conditionpublic java.lang.Object createDynamicElement(java.lang.String name)
createDynamicElement
in interface DynamicElement
name
- the condition to create.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |