|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.process.workers.BaseMetadataHolder
org.writersforge.catalan.process.commands.BaseCommand
org.writersforge.catalan.process.workers.xml.BaseQueryCommand
Shared class for XML commands that select XML content with a "query" property.
| Constructor Summary | |
BaseQueryCommand(java.lang.String name,
java.lang.String description)
Creates a new instance of BaseQueryCommand. |
|
BaseQueryCommand(java.lang.String name,
java.lang.String description,
PropertyInfo[] required,
OptionalPropertyInfo[] optional)
Creates a new instance of BaseQueryCommand. |
|
| Method Summary | |
protected org.writersforge.bellows.Datum[] |
getDestinationNodes(org.writersforge.bellows.Datum xml,
XmlCommonProperties props)
Retrieves the XML elements declared in the "dest" property. |
protected org.writersforge.bellows.Datum[] |
getQueryNodes(org.writersforge.bellows.Datum xml,
XmlCommonProperties props)
Retrieves the XML elements declared in the "query" property. |
protected abstract void |
processXmlNode(org.writersforge.bellows.Datum root,
java.util.List output,
XmlCommonProperties props)
Runs command on a single node of XML content. |
void |
run(CommandContext context)
Invokes this command against the given workspace with the given runtime properties. |
| Methods inherited from class org.writersforge.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.writersforge.catalan.process.workers.IMetadataHolder |
getMetadata, validateProperties, validateType |
| Constructor Detail |
public BaseQueryCommand(java.lang.String name,
java.lang.String description)
name - command namedescription - user-friendly command description
public BaseQueryCommand(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 properties| Method Detail |
protected org.writersforge.bellows.Datum[] getQueryNodes(org.writersforge.bellows.Datum xml,
XmlCommonProperties props)
xml - root XML elementprops - runtime properties
protected org.writersforge.bellows.Datum[] getDestinationNodes(org.writersforge.bellows.Datum xml,
XmlCommonProperties props)
xml - root XML elementprops - runtime properties
protected abstract void processXmlNode(org.writersforge.bellows.Datum root,
java.util.List output,
XmlCommonProperties props)
throws ProcessException
output
List.
root - xml root nodeoutput - destination listprops - runtime properties
ProcessException - if errors occur while processing XML node
public void run(CommandContext context)
throws ProcessException
run().
context - command context
ProcessException - if a fatal error occurs during processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||