Method Summary |
|
public void | addChild(UnknownElement child) Adds a child element to this element.
Parameters: child - The child element to add. |
public void | applyPreSet(UnknownElement u) This is used then the realobject of the UE is a PreSetDefinition. |
public void | configure(Object realObject) |
public UnknownElement | copy(Project newProject) Make a copy of the unknown element and set it in the new project.
Parameters: newProject - the project to create the UE in. |
public void | execute() Executes the real object if it's a task. |
public List | getChildren() |
protected String | getComponentName() |
public String | getNamespace() Return the namespace of the XML element associated with this component. |
protected BuildException | getNotFoundException(String what, String name) Returns a very verbose exception for when a task/data type cannot
be found.
Parameters: what - The kind of thing being created. |
public String | getQName() Return the qname of the XML element associated with this component. |
public Object | getRealThing() |
public String | getTag() Returns the name of the XML element which generated this unknown
element. |
public Task | getTask() Returns the task instance after it has been created and if it is a task. |
public String | getTaskName() Returns the name to use in logging messages. |
public RuntimeConfigurable | getWrapper() Get the RuntimeConfigurable instance for this UnknownElement, containing
the configuration information. |
protected void | handleChildren(Object parent, RuntimeConfigurable parentWrapper) Creates child elements, creates children of the children
(recursively), and sets attributes of the child elements.
Parameters: parent - The configured object for the parent.Must not be null . Parameters: parentWrapper - The wrapper containing child wrappersto be configured. |
protected void | handleErrorFlush(String output) Handles error output sent to System.err by this task or its real task.
Parameters: output - The error output to log. |
protected void | handleErrorOutput(String output) Handles error output sent to System.err by this task or its real task.
Parameters: output - The error output to log. |
protected void | handleFlush(String output) Handles output sent to System.out by this task or its real task.
Parameters: output - The output to log. |
protected int | handleInput(byte[] buffer, int offset, int length) Delegate to realThing if present and if it as task.
See Also: Task.handleInput(byte[]intint) Parameters: buffer - the buffer into which data is to be read. Parameters: offset - the offset into the buffer at which data is stored. Parameters: length - the amount of data to read. |
protected void | handleOutput(String output) Handles output sent to System.out by this task or its real task.
Parameters: output - The output to log. |
protected Object | makeObject(UnknownElement ue, RuntimeConfigurable w) Creates a named task or data type. |
protected Task | makeTask(UnknownElement ue, RuntimeConfigurable w) Creates a named task and configures it up to the init() stage.
Parameters: ue - The UnknownElement to create the real task for.Must not be null . Parameters: w - Ignored. |
public void | maybeConfigure() Creates the real object instance and child elements, then configures
the attributes and text of the real object. |
public void | setNamespace(String namespace) Set the namespace of the XML element associated with this component. |
public void | setQName(String qname) Set the namespace qname of the XML element. |
public void | setRealThing(Object realThing) |
public boolean | similar(Object obj) |