|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.relational.DatabaseSchemaToXML
This activity converts database schema (produced by the extract database schema activity for example) into an XML format.
This activity has one input - the activity providing the database schema meta data - and one output - the XML format.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
DatabaseSchemaToXML(ActivityOutput input)
Constructor. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
DatabaseSchemaMetaData |
getAsDatabaseSchemaMetaData()
Gets the sum of the values written to the input stream. |
ActivityOutput |
getOutput()
Gets the activity's only output - the database schema metadata in an XML format. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the database schema data. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
Constructor Detail |
public DatabaseSchemaToXML(ActivityOutput input)
input
- Output from another activity that provides the database
schema data.
java.lang.IllegalArgumentException
- If input
is null
.Method Detail |
public DatabaseSchemaMetaData getAsDatabaseSchemaMetaData() throws NoActivityOutputException, DataFormatException
NoActivityOutputException
- if there is no output data or the data has not yet been
processed to this output or the activity that generates
this output has not yet been executed.
DataFormatException
- if the output from the activity cannot be parsed into an
XML document format.public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |