public interface IVersionRestriction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IVersionRestriction.IVariableMapper
Maps a variable to another while copying.
|
| Modifier and Type | Method and Description |
|---|---|
IVersionRestriction |
copy(IModel model)
Copies this version restriction for the given
model. |
IVersionRestriction |
copy(IVersionRestriction.IVariableMapper mapper)
Copies this version restriction for the given using the given
mapper. |
void |
emit(java.lang.Object context)
Emits the version restriction in terms of it's specification representation.
|
boolean |
evaluate(IRestrictionEvaluationContext context,
Version version)
Evaluates the restriction.
|
java.lang.String |
toSpecification()
Turns the version restriction into it's specification representation.
|
void emit(java.lang.Object context)
context - the output context (interpreted by the respective implementation,
e.g., an output visitor in order to continue with the actual indentation, may
be null but then nothing is emitted)java.lang.String toSpecification()
boolean evaluate(IRestrictionEvaluationContext context, Version version) throws RestrictionEvaluationException
context - the output context (interpreted by the respective implementation,
e.g., an output visitor in order to continue with the actual indentation, may
be null but then false will always be the result)version - the version (of the project) to be used for evaluationtrue if the version matches the restriction, false elseRestrictionEvaluationException - in case of evaluation problemsIVersionRestriction copy(IModel model) throws RestrictionEvaluationException
model.model - the model to copy/instantiate this version restriction forRestrictionEvaluationException - in case of evaluation/type problemsIVersionRestriction copy(IVersionRestriction.IVariableMapper mapper) throws RestrictionEvaluationException
mapper.mapper - the variable mapperRestrictionEvaluationException - in case of evaluation/type problemsCopyright © 2009 - 2018 SSE. All Rights Reserved.