public class CreateLinkedComponentTask extends AbstractBaseTask
A Rhino management sub task for creating a virtual component that is a link to another component.
Attribute | Description | Required |
---|---|---|
type |
The component type.
See |
Yes. |
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
Element | Description | Required |
---|---|---|
source |
Identifies the component to create as a link to the target component.
See |
Yes. |
target |
Identifies the target component of the link.
See |
Yes. |
The task is run with a source component that has already been linked to the given target.
client, failOnError
Constructor and Description |
---|
CreateLinkedComponentTask() |
Modifier and Type | Method and Description |
---|---|
void |
addSource(SleeComponentElement component) |
void |
addTarget(SleeComponentElement component) |
protected void |
execute() |
void |
setType(String type) |
protected void |
validateParameters() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void addSource(SleeComponentElement component)
public void addTarget(SleeComponentElement component)
public void setType(String type)