Package net.ggtools.grand.ant
Class SubantTaskLink
- java.lang.Object
-
- net.ggtools.grand.graph.LinkImpl
-
- net.ggtools.grand.ant.AntLink
-
- net.ggtools.grand.ant.AntTaskLink
-
- net.ggtools.grand.ant.SubantTaskLink
-
- All Implemented Interfaces:
GraphObject,Link
public class SubantTaskLink extends AntTaskLink
A link representing a call by a task such likesubant. Instances of this class may hold a list of directories. This list will be used to create a link for the genericantfile version ofsubant.- Author:
- Christophe Labouisse
-
-
Field Summary
-
Fields inherited from interface net.ggtools.grand.graph.GraphObject
ATTR_ALL, ATTR_NONE
-
Fields inherited from interface net.ggtools.grand.graph.Link
ATTR_CONDITIONAL_LINK, ATTR_WEAK_LINK
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(LinkVisitor visitor)Method accept.voidaddDirectory(String newDir)Add a directory to the list of directory used when applying the generic Ant file.voidclearAttributes(int attributeMask)Method clearAttributes.intgetAttributes()Method getAttributes.Collection<String>getDirectories()Gets the list of directories to apply the generic Ant file onto.booleanhasAttributes(int attributeMask)Method hasAttributes.voidsetAttributes(int attributeMask)Method setAttributes.-
Methods inherited from class net.ggtools.grand.ant.AntTaskLink
addPropertyFile, getParameter, getParameterMap, getPropertyFiles, getTaskName, setParameter
-
Methods inherited from class net.ggtools.grand.graph.LinkImpl
getEndNode, getGraph, getName, getStartNode, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ggtools.grand.graph.GraphObject
clearAttributes, getAttributes, hasAttributes, setAttributes
-
-
-
-
Method Detail
-
accept
public final void accept(LinkVisitor visitor)
Method accept.- Specified by:
acceptin interfaceLink- Overrides:
acceptin classAntTaskLink- Parameters:
visitor- LinkVisitor- See Also:
Link.accept(net.ggtools.grand.graph.visit.LinkVisitor)
-
addDirectory
public final void addDirectory(String newDir)
Add a directory to the list of directory used when applying the generic Ant file.- Parameters:
newDir- String
-
getDirectories
public final Collection<String> getDirectories()
Gets the list of directories to apply the generic Ant file onto.- Returns:
- a read-only list of directories.
-
setAttributes
public void setAttributes(int attributeMask)
Method setAttributes.- Specified by:
setAttributesin interfaceGraphObject- Parameters:
attributeMask- int- See Also:
GraphObject.setAttributes(int)
-
getAttributes
public int getAttributes()
Method getAttributes.- Specified by:
getAttributesin interfaceGraphObject- Returns:
- int
- See Also:
GraphObject.getAttributes()
-
clearAttributes
public void clearAttributes(int attributeMask)
Method clearAttributes.- Specified by:
clearAttributesin interfaceGraphObject- Parameters:
attributeMask- int- See Also:
GraphObject.clearAttributes(int)
-
hasAttributes
public boolean hasAttributes(int attributeMask)
Method hasAttributes.- Specified by:
hasAttributesin interfaceGraphObject- Parameters:
attributeMask- int- Returns:
- boolean
- See Also:
GraphObject.hasAttributes(int)
-
-