|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.datastructure.DefaultAntNode
antsnest.datastructure.DefaultAntTarget
public class DefaultAntTarget
Implementation of AntTarget
AntTarget,
Serialized Form| Constructor Summary | |
|---|---|
DefaultAntTarget()
Constructs a new target |
|
| Method Summary | |
|---|---|
void |
addDepends(String target,
int position)
Adds a target dependency to this target |
void |
addIf(String property,
int position)
Adds a property that must be set in order for this target to execute |
void |
addUnless(String property,
int position)
Adds a property that must not be set in order for this target to execute |
AntNode |
cloneNode(IDPool idPool)
Gets a clone of this node |
String[] |
getDepends()
Gets any targets this target depends on executing first |
String[] |
getIf()
Gets any properties that must be set for this target to execute |
String |
getName()
Gets the name of this node |
String[] |
getUnless()
Gets any properties that must not be set for this target to execute |
void |
removeDepends(int position)
Removes a target dependency from this target |
void |
removeDepends(String target)
Removes a target dependency from this target |
void |
removeIf(int position)
Removes a property that must be set in order for this target to execute |
void |
removeIf(String property)
Removes a property that must be set in order for this target to execute |
void |
removeUnless(int position)
Removes a property that must not be set in order for this target to execute |
void |
removeUnless(String property)
Removes a property that must not be set in order for this target to execute |
void |
setName(String name)
Sets the name of this node |
String |
toString()
Provides a string representation of this target |
| Methods inherited from class antsnest.datastructure.DefaultAntNode |
|---|
addAttribute, addAttribute, addNode, addNode, changeAttribute, equals, getAttribute, getAttribute, getAttributeSize, getData, getDescription, getIDPool, getNode, getNodeID, getNodeSize, getNodeText, getParent, getType, getTypeAt, indexOfAttribute, indexOfNode, moveAttribute, moveNode, removeAttribute, removeAttribute, removeNode, removeNode, setData, setDescription, setIDPool, setNodeID, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface antsnest.datastructure.AntNode |
|---|
addAttribute, addAttribute, addNode, addNode, changeAttribute, getAttribute, getAttribute, getAttributeSize, getData, getDescription, getIDPool, getNode, getNodeID, getNodeSize, getNodeText, getParent, getType, getTypeAt, indexOfAttribute, indexOfNode, moveAttribute, moveNode, removeAttribute, removeAttribute, removeNode, removeNode, setData, setDescription, setIDPool, setNodeID, setParent |
| Constructor Detail |
|---|
public DefaultAntTarget()
| Method Detail |
|---|
public String getName()
getName in interface AntNodegetName in class DefaultAntNodepublic void setName(String name)
setName in interface AntNodesetName in class DefaultAntNodename - the new namepublic String[] getDepends()
getDepends in interface AntTarget
public void addDepends(String target,
int position)
addDepends in interface AntTargettarget - the dependency nameposition - where the dependency should be placed in the listpublic void removeDepends(String target)
removeDepends in interface AntTargettarget - the dependency name to removepublic void removeDepends(int position)
removeDepends in interface AntTargetposition - the index of the dependency to removepublic String[] getIf()
getIf in interface AntTarget
public void addIf(String property,
int position)
addIf in interface AntTargetproperty - the property name to addposition - where the property should be placed in the listpublic void removeIf(String property)
removeIf in interface AntTargetproperty - the property name to removepublic void removeIf(int position)
removeIf in interface AntTargetposition - the index of the property to removepublic String[] getUnless()
getUnless in interface AntTarget
public void addUnless(String property,
int position)
addUnless in interface AntTargetproperty - the property name to addposition - where the property should be placed in the listpublic void removeUnless(String property)
removeUnless in interface AntTargetproperty - the property name to removepublic void removeUnless(int position)
removeUnless in interface AntTargetposition - the index of the property to removepublic String toString()
toString in class Objectpublic AntNode cloneNode(IDPool idPool)
cloneNode in interface AntNodecloneNode in class DefaultAntNodeidPool - an ID pool to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||