public class PropertiesTask extends AbstractTask
Modifier and Type | Field and Description |
---|---|
protected static String |
DOM_ELEMENT_NAME |
static String |
DOM_ELEMENT_TASK
Task element name in config file.
|
DOM_ATTRIBUTE_GROUP, DOM_ATTRIBUTE_IF, DOM_ATTRIBUTE_PATH, DOM_ELEMENT_CONDITION, DOM_ELEMENT_DEFAULT, DOM_ELEMENT_DESCRIPTION, DOM_ELEMENT_VALUE
Constructor and Description |
---|
PropertiesTask(ConfigGroupManager groupManager)
Public Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(InputStream source,
OutputStream destination)
Apply this Task by copying source to destination.
|
boolean |
configureInteractively(InteractiveConfigurer configurer,
boolean force)
Configure the task by asking the user for inputs.
|
void |
deserialize(org.jdom2.Element node)
Load the task from a list of JDOM Elements.
|
Set<Property> |
getProperties()
Gets the properties property value.
|
String |
getSerializedName()
Gets the serialized Task Name.
|
boolean |
isConfigured()
Determine if the Task is completely configured.
|
void |
merge(Task other)
Merge another Task with this one.
|
void |
serialize(org.jdom2.Element node)
Serialize this Task to a JDOM Element.
|
String |
toString() |
createJDOMCDATAElement, createJDOMElement, createJDOMTextElement, equals, evaluateCondition, expandPropertyExpression, getGroupManager, getPath, hashCode, setPath
public static final String DOM_ELEMENT_TASK
protected static final String DOM_ELEMENT_NAME
public PropertiesTask(ConfigGroupManager groupManager)
groupManager
- the groupManager to usepublic void deserialize(org.jdom2.Element node) throws IOException
deserialize
in interface Task
deserialize
in class AbstractTask
node
- the JDOM Element to use for configuring this instanceIOException
- indicating IO Errorpublic void serialize(org.jdom2.Element node) throws IOException
serialize
in interface Task
serialize
in class AbstractTask
node
- the JDOM Element to serialize toIOException
- indicating IO Errorpublic Set<Property> getProperties()
public void merge(Task other)
other
- the other Taskpublic boolean isConfigured() throws IOException
IOException
- indicating IO Errorpublic boolean configureInteractively(InteractiveConfigurer configurer, boolean force) throws Exception
configurer
- the InteractiveConfigurer to useforce
- if true, the Task is always configuredException
- indicating processing failurepublic String getSerializedName()
public void apply(InputStream source, OutputStream destination) throws Exception
source
- the Input streamdestination
- the Output streamException
- indicating processing failureCopyright © 2013–2017 Polago AB. All rights reserved.