Class BslCheckIssue


  • public final class BslCheckIssue
    extends Issue
    Special Issue implementation for the BSL language module checks. May contain additional object validation information, like EStructuralFeature of the problem place and a special issue data.
    • Constructor Detail

      • BslCheckIssue

        public BslCheckIssue​(String message)
        Constructs a check
        Parameters:
        message - validation message, cannot be null
      • BslCheckIssue

        public BslCheckIssue​(String message,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             int index,
                             String... issueData)
        Constructs an instance with a specific problem EStructuralFeature and additional information
        Parameters:
        message - validation message, cannot be null
        feature - concrete problem EStructuralFeature, can be null
        index - of the object if the feature is a many feature
        issueData - additional information about found problem, can be null
      • BslCheckIssue

        public BslCheckIssue​(String message,
                             String... issueData)
        Constructs an issue with an additional information
        Parameters:
        message - validation message, cannot be null
        issueData - additional information about found problem, can be null
    • Method Detail

      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        Gets EStructuralFeature of the problem
        Returns:
        EStructuralFeature of the problem, can be null
      • getIndex

        public int getIndex()
        Gets index of the object if the getFeature() is a many feature
        Returns:
        index of the object if getFeature() is a many feature
      • getIssueData

        public String[] getIssueData()
        Gets an additional information of the problem
        Returns:
        issueData additional information of the problem, can be null