|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.catalan.process.workers.BaseMetadataHolder org.umber.catalan.process.commands.BaseCommand org.umber.catalan.process.workers.text.BaseTextCommand
Common base class for text commands, for sharing common methods.
Constructor Summary | |
BaseTextCommand(java.lang.String name,
java.lang.String description)
Creates a new instance of BaseTextCommand. |
|
BaseTextCommand(java.lang.String name,
java.lang.String description,
PropertyInfo[] required,
OptionalPropertyInfo[] optional)
Creates a new instance of BaseTextCommand. |
Method Summary | |
protected java.lang.String[] |
convertToArray(java.util.List nodes)
Loads String versions of all given nodes into a String array. |
protected java.lang.String |
extractText(java.lang.Object node)
Extracts the text content from arbitrary node formats. |
protected java.lang.Object |
storeText(java.lang.Object node,
java.lang.String text)
Assigns the text to the node. |
Methods inherited from class org.umber.catalan.process.workers.BaseMetadataHolder |
getMetadata, setOptionalProperties, setRequiredProperties, validateProperties, validateType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.umber.catalan.process.commands.ICommand |
run |
Methods inherited from interface org.umber.catalan.process.workers.IMetadataHolder |
getMetadata, validateProperties, validateType |
Constructor Detail |
public BaseTextCommand(java.lang.String name, java.lang.String description)
name
- command namedescription
- user-friendly command descriptionpublic BaseTextCommand(java.lang.String name, java.lang.String description, PropertyInfo[] required, OptionalPropertyInfo[] optional)
name
- command namedescription
- user-friendly command descriptionrequired
- property info for all required propertiesoptional
- property info for all optional propertiesMethod Detail |
protected java.lang.String extractText(java.lang.Object node)
node
- object to extract text from
protected java.lang.Object storeText(java.lang.Object node, java.lang.String text)
node
- original target nodetext
- text content to store
protected java.lang.String[] convertToArray(java.util.List nodes)
nodes
- input nodes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |