|
||||||||||
| 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.TemplateArgumentSequence
The class to create compile-time argument sequences (sequences used in template transformation's definitions)
CompositeTransformation,
A TemplateArgumentSequence object represents a sequence of TemplateArgument objects, i,e, compile-time arguments. TemplateArgument objects can be created using the createArgument methods defined in this class. Compile-time arguments can have specific values ({@link uk.ac.ic.doc.automed.reps.TemplateArgumentSequence.createArgument(int, String)}), can refer to already created arguments ({@link uk.ac.ic.doc.automed.reps.TemplateArgumentSequence.createArgument(int, TemplateArgument)}), can refer to arguments that will be instantiated at run-time ({@link uk.ac.ic.doc.automed.reps.TemplateArgumentSequence.createArgument(int, TemplateArgumentSequence, int)}) and to arguments in the run-time environment ({@link uk.ac.ic.doc.automed.reps.TemplateArgumentSequence.createArgument(int, int)}). For more information on how to create TemplateArgument objects see the {@link uk.ac.ic.doc.automed.reps.CompositeTransformation} API documentation.
| Constructor Summary | |
TemplateArgumentSequence()
Constructs a new TemplateArgumentSequence without any TemplateArgument objects. |
|
| Method Summary | |
TemplateArgument |
createArgument(int position,
int ref)
Constructs a new TemplateArgument and adds it to this TemplateArgumentSequence. |
TemplateArgument |
createArgument(int position,
java.lang.String value)
Constructs a new TemplateArgument and adds it to this TemplateArgumentSequence. |
TemplateArgument |
createArgument(int position,
TemplateArgument ref)
Constructs a new TemplateArgument and adds it to this TemplateArgumentSequence. |
TemplateArgument |
createArgument(int position,
TemplateArgumentSequence ref,
int refPosition)
Constructs a new TemplateArgument and adds it to this TemplateArgumentSequence. |
TemplateArgument |
getArgumentAt(int position)
Returns a particular TemplateArgument in this TemplateArgumentSequence. |
TemplateArgument[] |
getArguments()
Returns an array of all the TemplateArguments in this TemplateArgumentSequence. |
int |
getSequenceId()
Returns the sequence ID of this TemplateArgumentSequence. |
static TemplateArgumentSequence |
getTemplateArgumentSequence(int sequenceId)
Returns the reference to the TemplateArgumentSequence with the given ID. |
static TemplateArgumentSequence[] |
getTemplateArgumentSequences()
Returns an array of all TemplateArgumentSequence objects that have TemplateArgument objects. |
void |
print()
|
void |
remove()
Removes this TemplateArgumentSequence. |
void |
removeArgument(int position)
Removes a particular argument from this TemplateArgumentSequence. |
static void |
removeTemplateArgumentSequence(int sequenceId)
Removes a TemplateArgumentSequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TemplateArgumentSequence()
| Method Detail |
public static void removeTemplateArgumentSequence(int sequenceId)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
sequenceId - ID of the sequence of arguments to remove.
TemplateTransformationRepositoryException - see
TemplateTransformationRepository.removeArguments(int) and
remove()
RepositoryAccessException - if the repositories cannot be accessed
public void remove()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see
TemplateArgument.remove()
RepositoryAccessException - if the repositories cannot be accessed
public static TemplateArgumentSequence[] getTemplateArgumentSequences()
throws RepositoryAccessException,
AutoRepException
null if no argument sequences exists in the TTR.
RepositoryAccessException - if the repositories cannot be accessed
AutoRepException - see
getTemplateArgumentSequence(int)
public static TemplateArgumentSequence getTemplateArgumentSequence(int sequenceId)
throws AutoRepException,
RepositoryAccessException
sequenceId - ID of the argument sequence.
RepositoryAccessException - if the repositories cannot be accessed
AutoRepException - if the sequenceId is illegalpublic int getSequenceId()
public TemplateArgument[] getArguments()
public TemplateArgument createArgument(int position,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
value.
position - the position in the argument sequencevalue - value of this argument.
TemplateTransformationRepositoryException - see TemplateArgument.TemplateArgument(int, String)
and TemplateArgument.TemplateArgument(int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgument createArgument(int position,
TemplateArgumentSequence ref,
int refPosition)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
refPosition) in an argument sequence (ref). At run-time this position will store a valid run-time argument, so at run-time the value of this argument will be equal to the value of the referred argument.
position - the position in the argument sequenceref - the TemplateArgumentSequence that the argument is referingrefPosition - the position in the refering TemplateArgumentSequence
TemplateTransformationRepositoryException - if the referenced TemplateArgumentSequence hasn't been initialised (doesn't contain TemplateArgument objects), see TemplateArgument.TemplateArgument(int, TemplateArgumentSequence, int)
and TemplateArgument.TemplateArgument(int, int, TemplateArgumentSequence, int)
AutoRepException - see TemplateArgument.TemplateArgument(int, TemplateArgumentSequence, int)
and TemplateArgument.TemplateArgument(int, int, TemplateArgumentSequence, int)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgument createArgument(int position,
TemplateArgument ref)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
ref).
position - the position in the argument sequenceref - the TemplateArgument that this argument is refering
TemplateTransformationRepositoryException - see TemplateArgument.TemplateArgument(int, TemplateArgument)
and TemplateArgument.TemplateArgument(int, int, TemplateArgument)
AutoRepException - see TemplateArgument.TemplateArgument(int, TemplateArgumentSequence, int)
and TemplateArgument.TemplateArgument(int, TemplateArgument)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgument createArgument(int position,
int ref)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
ref of the run-time environment.
position - the position in the argument sequenceref - the position in the composite transformation's arguments that the argument is refering
TemplateTransformationRepositoryException - see TemplateArgument.TemplateArgument(int, int)
and TemplateArgument.TemplateArgument(int, int, int)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgument getArgumentAt(int position)
throws AutoRepException
position - the position in the argument sequence.
AutoRepException - if the specified position doesn't exist in this TemplateArgumentSequence
public void removeArgument(int position)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
position - the position to be removed from the argument sequence.
AutoRepException - see
getArgumentAt(int)
TemplateTransformationRepositoryException - see
TemplateArgument.remove()
RepositoryAccessException - if the repositories cannot be accessed
public void print()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException
RepositoryAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||