public class FilterTask extends AbstractTask
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
FilterTask(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 root)
Load the task from a list of JDOM Elements.
|
String |
getSerializedName()
Gets the serialized Task Name.
|
Set<FilterToken> |
getTokens()
Gets the tokens property value.
|
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, setPathpublic static final String DOM_ELEMENT_TASK
public FilterTask(ConfigGroupManager groupManager)
groupManager - the groupManager to usepublic void deserialize(org.jdom2.Element root)
throws IOException
deserialize in interface Taskdeserialize in class AbstractTaskroot - the JDOM Element to use for configuring this instanceIOException - indicating IO Errorpublic void serialize(org.jdom2.Element node)
throws IOException
serialize in interface Taskserialize in class AbstractTasknode - the JDOM Element to serialize toIOException - indicating IO Errorpublic Set<FilterToken> getTokens()
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.