Interface IVersionRestriction

    • Method Detail

      • emit

        void emit​(java.lang.Object context)
        Emits the version restriction in terms of it's specification representation.
        Parameters:
        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)
      • toSpecification

        java.lang.String toSpecification()
        Turns the version restriction into it's specification representation.
        Returns:
        the specification representation
      • evaluate

        boolean evaluate​(IRestrictionEvaluationContext context,
                         Version version)
                  throws RestrictionEvaluationException
        Evaluates the restriction.
        Parameters:
        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 evaluation
        Returns:
        true if the version matches the restriction, false else
        Throws:
        RestrictionEvaluationException - in case of evaluation problems