|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.reps.Statement
The class to create statements that can be used in a template transformation's program.
This class enables the creation of new statements and the definition of their arguments.
| Constructor Summary | |
Statement(java.lang.String name)
Constructs a new Statement without any StatementArgumentDefinition objects. |
|
| Method Summary | |
StatementArgumentDefinition |
createArgumentDefinition(int position,
java.lang.String tablename,
java.lang.String fieldname,
java.lang.String description)
Defines an argument for this Statement. |
StatementArgumentDefinition |
getArgumentDefinitionAt(int position)
Returns a particular StatementArgumentDefinition in the Statements's argument definition list. |
StatementArgumentDefinition[] |
getArgumentDefinitions()
Returns an array of all the StatementArgumentDefinition objects of this Statement. |
java.lang.String |
getName()
Returns the name of this Statement. |
protected static Statement |
getStatement(int stId)
Returns a reference to a Statement. |
static Statement |
getStatement(java.lang.String name)
Returns a reference to a Statement. |
static Statement[] |
getStatements()
Returns an array of all Statement objects. |
int |
getStId()
Returns the ID of this Statement. |
void |
print()
|
void |
remove()
Removes this Statement |
void |
removeArgumentDefinition(int position)
Removes a particular argument definition from this Statements's argument definition list. |
static void |
removeStatement(java.lang.String name)
Removes a Statement |
void |
setName(java.lang.String name)
Sets this Statement's name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Statement(java.lang.String name)
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
name - name of the statement.
TemplateTransformationSyntaxRepositoryException - see TemplateTransformationSyntaxRepository.createStatement(String)
RepositoryAccessException - if the repositories cannot be accessed| Method Detail |
public static void removeStatement(java.lang.String name)
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
name - name of statement to remove.
TemplateTransformationSyntaxRepositoryException - see TemplateTransformationSyntaxRepository.getStatementByName(String) and
TemplateTransformationSyntaxRepository.removeStatement(int) and
remove()
RepositoryAccessException - if the repositories cannot be accessed
public void remove()
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
TemplateTransformationSyntaxRepositoryException - see
StatementArgumentDefinition.remove() and
TemplateTransformationSyntaxRepository.removeStatement(int)
RepositoryAccessException - if the repositories cannot be accessed
public static Statement[] getStatements()
throws RepositoryAccessException
null if no statements exists in the TTSR.
RepositoryAccessException - if the repositories cannot be accessed
public static Statement getStatement(java.lang.String name)
throws RepositoryAccessException,
TemplateTransformationSyntaxRepositoryException
null if no records of a statement with the specifieds name exist in the TTSR.
name - name of the Statement to return.
TemplateTransformationSyntaxRepositoryException - see
TemplateTransformationSyntaxRepository.getStatementByName(String)
RepositoryAccessException - if the repositories cannot be accessed
protected static Statement getStatement(int stId)
throws RepositoryAccessException,
TemplateTransformationSyntaxRepositoryException
null if no records of a statement with the specifieds stId exist in the TTSR.
stId - the Statement's identifier
TemplateTransformationSyntaxRepositoryException - see
TemplateTransformationSyntaxRepository.getStatementName(int) and
getStatement(String)
RepositoryAccessException - if the repositories cannot be accessed
public java.lang.String getName()
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
TemplateTransformationSyntaxRepositoryException - see TemplateTransformationSyntaxRepository.getStatementName(int)
RepositoryAccessException - if the repositories cannot be accessedpublic int getStId()
public void setName(java.lang.String name)
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
name - new name of Statement.
TemplateTransformationSyntaxRepositoryException - see TemplateTransformationSyntaxRepository.setStatementName(int, String)
RepositoryAccessException - if the repositories cannot be accessedpublic StatementArgumentDefinition[] getArgumentDefinitions()
public StatementArgumentDefinition createArgumentDefinition(int position,
java.lang.String tablename,
java.lang.String fieldname,
java.lang.String description)
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
position in this Statement object's arguments. tablename, fieldname and description are used to describe the specific argument.
position - the position in the statement's argumentstablename - name of the table referenced by this argument.fieldname - name of the table's field referenced by this argument.description - description of this argument.
TemplateTransformationSyntaxRepositoryException - see StatementArgumentDefinition.StatementArgumentDefinition(int, int, String, String, String)
RepositoryAccessException - if the repositories cannot be accessed
public StatementArgumentDefinition getArgumentDefinitionAt(int position)
throws AutoRepException
position - the position in the statement's arguments.
AutoRepException - if the specified position doesn't exist in this Statement's argument definition list
public void removeArgumentDefinition(int position)
throws TemplateTransformationSyntaxRepositoryException,
AutoRepException,
RepositoryAccessException
position - the position to be removed from the statement's argument definitions
AutoRepException - see
getArgumentDefinitionAt(int)
TemplateTransformationSyntaxRepositoryException - see
StatementArgumentDefinition.remove()
RepositoryAccessException - if the repositories cannot be accessed
public void print()
throws TemplateTransformationSyntaxRepositoryException,
RepositoryAccessException
TemplateTransformationSyntaxRepositoryException
RepositoryAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||