|
||||||||||
| 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.TemplateArgument
The class to create compile-time arguments (arguments used in template transformation's definitions)
TemplateArgumentSequence,
A TemplateArgument object represents an argument in a template transformation's definition. TemplateArgument objects belong to a TemplateArgumentSequence and can be created through the sequence object. Compile-time arguments can have specific values, can refer to other arguments or refer to arguments in the run-time environment.
| Constructor Summary | |
protected |
TemplateArgument(int position,
int reference)
Constructs a new TemplateArgument that refers to a composite transformation's arguments and creates a new sequence of arguments. |
protected |
TemplateArgument(int sequenceId,
int position,
int reference)
Constructs a new TemplateArgument that refers to a composite transformation's arguments. |
protected |
TemplateArgument(int sequenceId,
int position,
java.lang.String value)
Constructs a new TemplateArgument storing the specified value. |
protected |
TemplateArgument(int sequenceId,
int position,
TemplateArgument reference)
Constructs a new TemplateArgument that refers to another TemplateArgument |
protected |
TemplateArgument(int sequenceId,
int position,
TemplateArgumentSequence reference,
int refPosition)
Constructs a new TemplateArgument that refers to another argument |
protected |
TemplateArgument(int position,
java.lang.String value)
Constructs a new TemplateArgument storing the specified value and creates a new sequence of arguments. |
protected |
TemplateArgument(int position,
TemplateArgument reference)
Constructs a new TemplateArgument that refers to another TemplateArgument and creates a new argument sequence |
protected |
TemplateArgument(int position,
TemplateArgumentSequence reference,
int refPosition)
Constructs a new TemplateArgument that refers to another argument and creates a new argument sequence |
| Method Summary | |
protected static java.util.ArrayList |
getArgumentsForSequence(int sequenceId)
Returns all the TemplateArgument objects of the specified sequence of arguments. |
int |
getPosition()
Returns the position of this TemplateArgument. |
int |
getPositionInReferencedArgumentSequence()
Returns the position in the referenced arguments sequence. |
TemplateArgumentSequence |
getReferencedArgumentSequence()
Returns the TemplateArgumentSequence this TemplateArgument refers to. |
int |
getSequenceId()
Returns the sequence identifier of this TemplateArgument. |
java.lang.String |
getValue()
Returns this TemplateArgument's value field. |
void |
print()
|
protected void |
remove()
Removes this TemplateArgument from the TTR. |
void |
setReference(int reference)
Sets the TemplateArgument to refer to the transformation's arguments. |
void |
setReference(TemplateArgument reference)
Sets this TemplateArgument to refer to another TemplateArgument. |
void |
setReference(TemplateArgumentSequence reference,
int refPosition)
Sets this TemplateArgument to refer to the specified position in the specified TemplateArgumentSequence. |
void |
setValue(java.lang.String value)
Sets the value of this TemplateArgument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected TemplateArgument(int sequenceId,
int position,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
sequenceId - ID of the argument sequence this argument belongs toposition - the position of this argument in the sequencevalue - value of the argument
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createArgument(int, int, int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int position,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
position - the position of this argument in the sequencevalue - value of the argument
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createFirstArgument(int, int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int sequenceId,
int position,
TemplateArgumentSequence reference,
int refPosition)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
sequenceId - ID of the argument sequence this argument belongs toposition - the position of this TemplateArgument in the sequencereference - the TemplateArgumentSequence this TemplateArgument refers torefPosition - the position in the refering TemplateArgumentSequence
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createArgument(int, int, int, int, String)
AutoRepException - if the TemplateArgumentSequence object is null
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int position,
TemplateArgumentSequence reference,
int refPosition)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
position - the position of this TemplateArgument in the sequencereference - the TemplateArgumentSequence this TemplateArgument refers torefPosition - the position in the refering TemplateArgumentSequence
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createFirstArgument(int, int, int, String)
AutoRepException - if the TemplateArgumentSequence object is null
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int sequenceId,
int position,
TemplateArgument reference)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
sequenceId - ID of the argument sequence this argument belongs toposition - the position of this TemplateArgument in the sequencereference - the TemplateArgument this TemplateArgument refers to
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createArgument(int, int, int, int, String)
AutoRepException - if the TemplateArgument object is null
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int position,
TemplateArgument reference)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
position - the position of this TemplateArgument in the sequencereference - the TemplateArgument this TemplateArgument refers to
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createFirstArgument(int, int, int, String)
AutoRepException - if the TemplateArgument object is null
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int sequenceId,
int position,
int reference)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
reference - position in the transformation's sequence of arguments
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createArgument(int, int, int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
protected TemplateArgument(int position,
int reference)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
reference - position in the transformation's sequence of arguments
TemplateTransformationRepositoryException - see TemplateTransformationRepository.createFirstArgument(int, int, int, String)
RepositoryAccessException - if the repositories cannot be accessed| Method Detail |
public java.lang.String getValue()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.getArgumentsValue(int, int)
RepositoryAccessException - if the repositories cannot be accessed
public TemplateArgumentSequence getReferencedArgumentSequence()
throws RepositoryAccessException,
TemplateTransformationRepositoryException
null if no TemplateArgumentSequence is referred.
TemplateTransformationRepositoryException - see TemplateTransformationRepository.getArgumentsArgIdRef(int, int)
RepositoryAccessException - if the repositories cannot be accessed
public int getPositionInReferencedArgumentSequence()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.getArgumentsArgPosRef(int, int)
RepositoryAccessException - if the repositories cannot be accessed
public void setReference(TemplateArgument reference)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
reference - the TemplateArgument this TemplateArgument refers to
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setArgumentsArgIdRef(int, int, int) and
TemplateTransformationRepository.setArgumentsArgPosRef(int, int, int)
AutoRepException - if TemplateArgument is null
RepositoryAccessException - if the repositories cannot be accessed
public void setReference(TemplateArgumentSequence reference,
int refPosition)
throws TemplateTransformationRepositoryException,
AutoRepException,
RepositoryAccessException
reference - the TemplateArgumentSequence this TemplateArgument refers torefPosition - the position in the refering TemplateArgumentSequence
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setArgumentsArgIdRef(int, int, int) and
TemplateTransformationRepository.setArgumentsArgPosRef(int, int, int)
AutoRepException - if TemplateArgument is null
RepositoryAccessException - if the repositories cannot be accessed
public void setValue(java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
value - the value of this TemplateArgument
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setArgumentsArgIdRef(int, int, int) and
TemplateTransformationRepository.setArgumentsArgPosRef(int, int, int) and
TemplateTransformationRepository.setArgumentsValue(int, int, String)
RepositoryAccessException - if the repositories cannot be accessed
public void setReference(int reference)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.setArgumentsArgIdRef(int, int, int) and
TemplateTransformationRepository.setArgumentsArgPosRef(int, int, int)
RepositoryAccessException - if the repositories cannot be accessed
protected void remove()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException - see TemplateTransformationRepository.removeArgument(int, int)
RepositoryAccessException - if the repositories cannot be accessedpublic int getSequenceId()
public int getPosition()
public void print()
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException
RepositoryAccessException
protected static java.util.ArrayList getArgumentsForSequence(int sequenceId)
throws RepositoryAccessException
null if no TemplateArgument objects exist in the TTR.
sequenceId - ID of sequence of arguments that the TemplateArgument 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 | |||||||||