antsnest.datastructure
Interface AntTarget

All Superinterfaces:
AntNode, Serializable
All Known Implementing Classes:
DefaultAntTarget

public interface AntTarget
extends AntNode

Represents a target node in a build file

Author:
Chris Clohosy
See Also:
AntNode

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
 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[] 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
 
Methods inherited from interface antsnest.datastructure.AntNode
addAttribute, addAttribute, addNode, addNode, changeAttribute, cloneNode, getAttribute, getAttribute, getAttributeSize, getData, getDescription, getIDPool, getName, getNode, getNodeID, getNodeSize, getNodeText, getParent, getType, getTypeAt, indexOfAttribute, indexOfNode, moveAttribute, moveNode, removeAttribute, removeAttribute, removeNode, removeNode, setData, setDescription, setIDPool, setName, setNodeID, setParent
 

Method Detail

getDepends

String[] getDepends()
Gets any targets this target depends on executing first

Returns:
a String[], the dependencies

addDepends

void addDepends(String target,
                int position)
Adds a target dependency to this target

Parameters:
target - the dependency name
position - where the dependency should be placed in the list

removeDepends

void removeDepends(String target)
Removes a target dependency from this target

Parameters:
target - the dependency name to remove

removeDepends

void removeDepends(int position)
Removes a target dependency from this target

Parameters:
position - the index of the dependency to remove

getIf

String[] getIf()
Gets any properties that must be set for this target to execute

Returns:
a String[], the properties

addIf

void addIf(String property,
           int position)
Adds a property that must be set in order for this target to execute

Parameters:
property - the property name to add
position - where the property should be placed in the list

removeIf

void removeIf(String property)
Removes a property that must be set in order for this target to execute

Parameters:
property - the property name to remove

removeIf

void removeIf(int position)
Removes a property that must be set in order for this target to execute

Parameters:
position - the index of the property to remove

getUnless

String[] getUnless()
Gets any properties that must not be set for this target to execute

Returns:
a String[], the properties

addUnless

void addUnless(String property,
               int position)
Adds a property that must not be set in order for this target to execute

Parameters:
property - the property name to add
position - where the property should be placed in the list

removeUnless

void removeUnless(String property)
Removes a property that must not be set in order for this target to execute

Parameters:
property - the property name to remove

removeUnless

void removeUnless(int position)
Removes a property that must not be set in order for this target to execute

Parameters:
position - the index of the property to remove