Class NonWordsTypeComputer

    • Constructor Detail

      • NonWordsTypeComputer

        public NonWordsTypeComputer()
    • Method Detail

      • isNonWordContent

        public static boolean isNonWordContent​(String content)
        Checks if the content is non word content only.
        Parameters:
        content - the content, cannot be null.
        Returns:
        true, if the content is non word content
      • validate

        public org.eclipse.core.runtime.IStatus validate​(StringLiteral literal,
                                                         List<String> content,
                                                         org.eclipse.xtext.util.CancelIndicator monitor)
        Description copied from interface: TypeValidator
        Checks that content of string literal is valid for the declared content type.
        Specified by:
        validate in interface TypeValidator
        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.