|
||||||||||
| 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.RuntimeArgumentSequence
The class to create run-time (during a template composite transformation's execution) argument sequences
CompositeTransformation,
A RuntimeArgumentSequence object represents a sequence of RuntimeArgument objects, i,e, run-time arguments. RuntimeArgument objects can be created using the createArgument method defined in this class. 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 and sequences outside a template transformation's execution, except when creating the arguments for a transformation's invocation (start the template transfomation's execution).
| Constructor Summary | |
RuntimeArgumentSequence()
Constructs a new RuntimeArgumentSequence without any RuntimeArgument objects |
|
| Method Summary | |
RuntimeArgument |
createArgument(int position,
java.lang.String value)
Constructs a new RuntimeArgument and adds it to this RuntimeArgumentSequence. |
RuntimeArgument |
getArgumentAt(int position)
Returns a particular RuntimeArgument in this RuntimeArgumentSequence. |
RuntimeArgument[] |
getArguments()
Returns an array of all the RuntimeArguments in this RuntimeArgumentSequence. |
static RuntimeArgumentSequence |
getRuntimeArgumentSequence(int sequenceId)
Returns the reference to the RuntimeArgumentSequence with the given ID. |
static RuntimeArgumentSequence[] |
getRuntimeArgumentSequences()
Returns an array of all RuntimeArgumentSequence objects that have RuntimeArgument objects. |
int |
getSequenceId()
Returns the sequence ID of this RuntimeArgumentSequence. |
void |
print()
|
void |
remove()
Removes this RuntimeArgumentSequence. |
void |
removeArgument(int position)
Removes a particular argument from this RuntimeArgumentSequence. |
static void |
removeRuntimeArgumentSequence(int sequenceId)
Removes a RuntimeArgumentSequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RuntimeArgumentSequence()
| Method Detail |
public static void removeRuntimeArgumentSequence(int sequenceId)
throws TemplateExecutionRepositoryException,
RepositoryAccessException
sequenceId - ID of the sequence of arguments to remove.
TemplateExecutionRepositoryException - see
TemplateExecutionRepository.removeArguments(int) and
remove()
RepositoryAccessException - if the repositories cannot be accessed
public void remove()
throws TemplateExecutionRepositoryException,
RepositoryAccessException
TemplateExecutionRepositoryException - see
RuntimeArgument.remove()
RepositoryAccessException - if the repositories cannot be accessed
public static RuntimeArgumentSequence[] getRuntimeArgumentSequences()
throws RepositoryAccessException,
AutoRepException
null if no argument sequences exist in the TER.
RepositoryAccessException - if the repositories cannot be accessed
AutoRepException - if an illegal sequenceId is found
public static RuntimeArgumentSequence getRuntimeArgumentSequence(int sequenceId)
throws AutoRepException,
RepositoryAccessException
null of no records of the specified sequenceId exists in the TER.
sequenceId - ID of the argument sequence.
AutoRepException - if sequenceId is illegal
RepositoryAccessException - if the repositories cannot be accessedpublic int getSequenceId()
public RuntimeArgument[] getArguments()
public RuntimeArgument createArgument(int position,
java.lang.String value)
throws TemplateExecutionRepositoryException,
RepositoryAccessException
position - the position in the new argument sequencevalue - value of this argument.
TemplateExecutionRepositoryException - see RuntimeArgument.RuntimeArgument(int, String)
and RuntimeArgument.RuntimeArgument(int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
public RuntimeArgument getArgumentAt(int position)
throws AutoRepException
position - the position in the argument sequence.
AutoRepException - if the specified position doesn't exist in this RuntimeArgumentSequence
RepositoryAccessException - if the repositories cannot be accessed
public void removeArgument(int position)
throws TemplateExecutionRepositoryException,
AutoRepException,
RepositoryAccessException
position - the position to be removed from the argument sequence.
AutoRepException - see
getArgumentAt(int)
TemplateExecutionRepositoryException - see
RuntimeArgument.remove()
RepositoryAccessException - if the repositories cannot be accessed
public void print()
throws TemplateExecutionRepositoryException,
RepositoryAccessException
TemplateExecutionRepositoryException
RepositoryAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||