Interface IAvailableStringLiteralServiceProvider

All Known Implementing Classes:
AvailableStringLiteralServiceProvider

public interface IAvailableStringLiteralServiceProvider
Special proposal provider for StringLiteral expression in Bsl
  • Method Details

    • isAppropriate

      boolean isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
      Check context for availability of validation
      Parameters:
      context - contains
      • parentObject object contains string literal in its parameters
      • allExpr all parameters of parentObject
      • paramNumber number of string literal in parameter method's list
      Returns:
      true if validation available for this context
    • isAppropriate

      boolean isAppropriate(StringLiteral context)
      Checks context for availability of validation
      Parameters:
      context - checking StringLiteral for availability of validation, can't be null
      Returns:
      true if validation is available for this context, false otherwise
    • isCorrectValue

      boolean isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
      Checks that content of the StringLiteral correct in this context
      Parameters:
      content - content of the StringLiteral without quote, can't be null
      context - contains
      • parentObject object contains string literal in its parameters
      • allExpr all parameters of parentObject
      • paramNumber number of string literal in parameter method's list
      Returns:
      true if content of the StringLiteral correct in this context, false otherwise
    • validate

      List<String> validate(StringLiteral context)
      Validates StringLiteral. This method accumulates validation messages from all registered implementation of IAvailableStringLiteralProvider
      Parameters:
      context - validating StringLiteral, can't be null
      Returns:
      list of validation issue messages. This messages will be wrapped to the validation diagnostics, or empty list if StringLiteral content is correct for this context. Never null
    • getExportedNames

      Set<org.eclipse.xtext.naming.QualifiedName> getExportedNames(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Gets all available imported names provided by string literals
      Parameters:
      context - contains
      • parentObject object contains string literal in its parameters
      • allExpr all parameters of parentObject
      • paramNumber number of string literal in parameter method's list
      actual - IScopeProvider, can't be null
      Returns:
      found imported names, never null
    • getReferenceDescriptions

      List<org.eclipse.xtext.resource.IReferenceDescription> getReferenceDescriptions(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Gets reference descriptions by string literals
      Parameters:
      context - contains
      • parentObject object contains string literal in its parameters
      • allExpr all parameters of parentObject
      • paramNumber number of string literal in parameter method's list
      actual - IScopeProvider, can't be null
      Returns:
      reference descriptions or empty list if string literal doesn't provide anything reference descriptions, never null