Class SemanticErrorDescription


  • public class SemanticErrorDescription
    extends java.lang.Object
    Data class for describing semantic errors occurred during parsing a Model file.
    Author:
    El-Sharkawy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String description  
      private java.lang.String location  
    • Constructor Summary

      Constructors 
      Constructor Description
      SemanticErrorDescription​(java.lang.String location, java.lang.String description)
      Sole constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Getter for the error description.
      java.lang.String getLocation()
      Getter for the location of the file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • location

        private java.lang.String location
      • description

        private java.lang.String description
    • Constructor Detail

      • SemanticErrorDescription

        public SemanticErrorDescription​(java.lang.String location,
                                        java.lang.String description)
        Sole constructor for this class.
        Parameters:
        location - The location of the parsed file (could be a URI or a path in the file system).
        description - Description of the error occurred during parsing.
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
        Getter for the location of the file.
        Returns:
        The location of the parsed/loaded file.
      • getDescription

        public java.lang.String getDescription()
        Getter for the error description.
        Returns:
        A message describing the parser error.