|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.task.lang.ClosureParameters
public final class ClosureParameters
This configuration object is passed to a closure run by the closure task that has one or several source properties and/or the target property set. (If neither of the properties are set, the closure is called without an argument.)
Method Summary | |
---|---|
OverwriteStrategy |
getOverwriteStrategy()
Get the overwrite strategy. |
RelativeLocation |
getRelativeToBase()
This property is set with the task's source's location relative to a base location if the task is run within a recursive task. |
Object |
getSource()
Get the first item of the source list, or null if no sources are
set. |
List<Object> |
getSources()
Get a list containing all sources in the order that they were added to the task factory. |
Object |
getTarget()
Get the target, or null if no target is set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<Object> getSources()
public Object getSource()
null
if no sources are
set.
null
if no sources
are set.public RelativeLocation getRelativeToBase()
If the SourceConfigurable
(this object) is an action task factory
that is used in a recursive action task, the recursive action
task sets this property for each created task.
public Object getTarget()
null
if no target is set.
null
if no target is set.public OverwriteStrategy getOverwriteStrategy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |