Package net.ggtools.grand.ant
Class AntTaskLink
- java.lang.Object
- 
- net.ggtools.grand.graph.LinkImpl
- 
- net.ggtools.grand.ant.AntLink
- 
- net.ggtools.grand.ant.AntTaskLink
 
 
 
- 
- All Implemented Interfaces:
- GraphObject,- Link
 - Direct Known Subclasses:
- SubantTaskLink
 
 public class AntTaskLink extends AntLink A link representing a call by a task such likeant,runtarget, etc. Instances of the class will have a mandatory task name and may have some defined parameters.- Author:
- Christophe Labouisse
 
- 
- 
Field Summary- 
Fields inherited from interface net.ggtools.grand.graph.GraphObjectATTR_ALL, ATTR_NONE
 - 
Fields inherited from interface net.ggtools.grand.graph.LinkATTR_CONDITIONAL_LINK, ATTR_WEAK_LINK
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(LinkVisitor visitor)Method accept.voidaddPropertyFile(String fileName)Add a new property file to the current list.voidclearAttributes(int attributeMask)Method clearAttributes.intgetAttributes()Method getAttributes.StringgetParameter(String key)Return the value of a parameter ornullif not defined.Map<String,String>getParameterMap()Returns a readonly version of the parameter map.String[]getPropertyFiles()Returns an array of property files set for this link.StringgetTaskName()booleanhasAttributes(int attributeMask)Method hasAttributes.voidsetAttributes(int attributeMask)Method setAttributes.voidsetParameter(String key, String value)Sets an attribute for the link.- 
Methods inherited from class net.ggtools.grand.graph.LinkImplgetEndNode, getGraph, getName, getStartNode, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface net.ggtools.grand.graph.GraphObjectclearAttributes, getAttributes, hasAttributes, setAttributes
 
- 
 
- 
- 
- 
Method Detail- 
acceptpublic void accept(LinkVisitor visitor) Method accept.- Specified by:
- acceptin interface- Link
- Overrides:
- acceptin class- AntLink
- Parameters:
- visitor- LinkVisitor
- See Also:
- Link.accept(net.ggtools.grand.graph.visit.LinkVisitor)
 
 - 
getTaskNamepublic final String getTaskName() - Returns:
- Returns the taskName.
 
 - 
setParameterpublic final void setParameter(String key, String value) Sets an attribute for the link.- Parameters:
- key- String
- value- String
 
 - 
getParameterpublic final String getParameter(String key) Return the value of a parameter ornullif not defined.- Parameters:
- key- String
- Returns:
- String
 
 - 
getPropertyFilespublic final String[] getPropertyFiles() Returns an array of property files set for this link.- Returns:
- String[]
 
 - 
addPropertyFilepublic final void addPropertyFile(String fileName) Add a new property file to the current list.- Parameters:
- fileName- String
 
 - 
getParameterMappublic final Map<String,String> getParameterMap() Returns a readonly version of the parameter map.- Returns:
- a read only map of the parameters.
 
 - 
setAttributespublic void setAttributes(int attributeMask) Method setAttributes.- Specified by:
- setAttributesin interface- GraphObject
- Parameters:
- attributeMask- int
- See Also:
- GraphObject.setAttributes(int)
 
 - 
getAttributespublic int getAttributes() Method getAttributes.- Specified by:
- getAttributesin interface- GraphObject
- Returns:
- int
- See Also:
- GraphObject.getAttributes()
 
 - 
clearAttributespublic void clearAttributes(int attributeMask) Method clearAttributes.- Specified by:
- clearAttributesin interface- GraphObject
- Parameters:
- attributeMask- int
- See Also:
- GraphObject.clearAttributes(int)
 
 - 
hasAttributespublic boolean hasAttributes(int attributeMask) Method hasAttributes.- Specified by:
- hasAttributesin interface- GraphObject
- Parameters:
- attributeMask- int
- Returns:
- boolean
- See Also:
- GraphObject.hasAttributes(int)
 
 
- 
 
-