public abstract class AbstractCollect extends Object implements org.apache.commons.chain.Command
Constructor and Description |
---|
AbstractCollect() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.apache.commons.chain.Context ctx) |
String |
getDepthKey() |
String |
getDestKey() |
String |
getNamePatternKey() |
String |
getSrcPathKey() |
protected abstract boolean |
isCollectNodes()
Collect nodes flag
|
protected abstract boolean |
isCollectProperties()
Collect properties flag
|
void |
setDepthKey(String depthKey) |
void |
setDestKey(String destKey)
Sets the destination key
|
void |
setNamePatternKey(String namePatternKey) |
void |
setSrcPathKey(String srcPathKey)
Sets the source path key
|
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception
execute
in interface org.apache.commons.chain.Command
Exception
public String getDepthKey()
public void setDepthKey(String depthKey)
depthKey
- Set the context attribute key for the depth attributepublic String getNamePatternKey()
public void setNamePatternKey(String namePatternKey)
namePatternKey
- context attribute key for the name pattern attributeprotected abstract boolean isCollectNodes()
Node
s must be collectedprotected abstract boolean isCollectProperties()
Property
s must be collectedpublic String getDestKey()
public void setDestKey(String destKey)
destKey
- the detination keypublic String getSrcPathKey()
public void setSrcPathKey(String srcPathKey)
srcPathKey
- the source path keyCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.