|
||||||||||
| 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.RuntimeArgument
The class to create run-time (during a template composite transformation's execution) arguments
RuntimeArgumentSequence,
A RuntimeArgument object represents a run-time argument, i.e. an argument created during a template composite transformation's execution. RuntimeArgument objects belong to a RuntimeArgumentSequence and can be created through the sequence object. Run-time arguments have specific values and don't refer to other arguments.
This class shouldn't be used directly, since there is no reason to create run-time arguments outside a template transformation's execution, except when creating the arguments for a transformation's invocation (start the template transfomation's execution).
| Constructor Summary | |
protected |
RuntimeArgument(int sequenceId,
int position,
java.lang.String value)
Constructs a new RuntimeArgument storing the specified value. |
protected |
RuntimeArgument(int position,
java.lang.String value)
Constructs a new RuntimeArgument storing the specified value and creates a new sequence of arguments. |
| Method Summary | |
protected static java.util.ArrayList |
getArgumentsForSequence(int sequenceId)
Returns all RuntimeArgument objects of the specified sequence of arguments. |
int |
getPosition()
Returns the position of this RuntimeArgument. |
int |
getSequenceId()
Returns the sequence identifier of this RuntimeArgument. |
java.lang.String |
getValue()
Returns this RuntimeArgument's value field. |
void |
print()
|
protected void |
remove()
Removes this RuntimeArgument from the TER. |
void |
setValue(java.lang.String value)
Sets the value of this RuntimeArgument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected RuntimeArgument(int sequenceId,
int position,
java.lang.String value)
throws TemplateExecutionRepositoryException,
RepositoryAccessException
sequenceId - ID of the argument sequence this argument belongs toposition - the position of this RuntimeArgument in the sequencevalue - value of the RuntimeArgument
TemplateExecutionRepositoryException - see TemplateExecutionRepository.createArgument(int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
protected RuntimeArgument(int position,
java.lang.String value)
throws TemplateExecutionRepositoryException,
RepositoryAccessException
position - the position of this RuntimeArgument in the sequencevalue - value of the RuntimeArgument
TemplateExecutionRepositoryException - see TemplateExecutionRepository.createFirstArgument(int, String)
RepositoryAccessException - if the repositories cannot be accessed| Method Detail |
public java.lang.String getValue()
throws TemplateExecutionRepositoryException,
RepositoryAccessException
TemplateExecutionRepositoryException - see TemplateExecutionRepository.getArgumentsValue(int, int)
RepositoryAccessException - if the repositories cannot be accessed
public void setValue(java.lang.String value)
throws TemplateExecutionRepositoryException,
RepositoryAccessException
value - the value of this RuntimeArgument
TemplateExecutionRepositoryException - see TemplateExecutionRepository.setArgumentsValue(int, int, String) and
RepositoryAccessException - if the repositories cannot be accessed
protected void remove()
throws TemplateExecutionRepositoryException,
RepositoryAccessException
TemplateExecutionRepositoryException - see TemplateExecutionRepository.removeArgument(int, int)
RepositoryAccessException - if the repositories cannot be accessedpublic int getSequenceId()
public int getPosition()
public void print()
throws TemplateExecutionRepositoryException,
RepositoryAccessException
TemplateExecutionRepositoryException
RepositoryAccessException
protected static java.util.ArrayList getArgumentsForSequence(int sequenceId)
throws RepositoryAccessException
null if no arguments exists in the TTR for the specified sequence of arguments.
sequenceId - ID of sequence of arguments that the RuntimeArgument objects will belong to
RepositoryAccessException - if the repositories cannot be accessed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||