Interface IValueTypeValidator

    • Method Detail

      • checkDefaultValue

        boolean checkDefaultValue​(String value,
                                  ValueType type,
                                  org.eclipse.xtext.scoping.IScope scope)
        Checking Property.getDefault() value
        Parameters:
        value - actual default value, can't be null
        type - ValueType of Property, can't be null
        scope - IScope of Type, can't be null
        Returns:
        true if default value is valid for type, false otherwise
      • checkValueSpace

        boolean checkValueSpace​(String value)
        Checks string representation of facet value for ValueType
        Parameters:
        value - checking value, can't be null
        Returns:
        true if value is valid, false otherwise
      • checkEnumerations

        boolean checkEnumerations​(String value,
                                  ValueType type)
        Parameters:
        value - checking value, can't be null
        type - ValueType which value is checked, can't be null
        Returns:
        true if value is valid, false otherwise
      • checkPatterns

        boolean checkPatterns​(String value,
                              ValueType type)
        Parameters:
        value - checking value, can't be null
        type - ValueType which value is checked, can't be null
        Returns:
        true if value is valid, false otherwise
      • compare

        int compare​(String value,
                    String otherValue)
        Comparing facet values
        Parameters:
        value - the first value for comparing, can't be null
        otherValue - the second value for comparing, can't be null
        Returns:
        the value 0 if arguments are equal ; a value less than 0 if the first value less that the second; and a value greater than 0 if the first value greater that the second.