Interface TypeValidator

    • Method Detail

      • getSupportedType

        String getSupportedType()
        Returns the supported type ID of the string literal content validator.
        Returns:
        the supported type, cannot return null.
      • validate

        org.eclipse.core.runtime.IStatus validate​(StringLiteral literal,
                                                  List<String> content,
                                                  org.eclipse.xtext.util.CancelIndicator monitor)
        Checks that content of string literal is valid for the declared content type.
        Parameters:
        literal - the string literal, cannot be null.
        content - the content of lines of the string literal, cannot be null.
        monitor - the monitor to check cancel status, cannot be null.
        Returns:
        the status of validation, cannot return null.