Class XmlFormatViolation


  • public class XmlFormatViolation
    extends java.lang.Object
    A violation of a prescribed XML formatting.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int column  
      private java.io.File file  
      private int lineNumber  
      private java.lang.String message  
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlFormatViolation​(java.io.File file, int lineNumber, int column, java.lang.String message)  
    • Field Detail

      • column

        private final int column
      • file

        private final java.io.File file
      • lineNumber

        private final int lineNumber
      • message

        private final java.lang.String message
    • Constructor Detail

      • XmlFormatViolation

        public XmlFormatViolation​(java.io.File file,
                                  int lineNumber,
                                  int column,
                                  java.lang.String message)
    • Method Detail

      • getColumn

        public int getColumn()
        Returns:
        the column where the violation was detected. The first column number is 1
      • getFile

        public java.io.File getFile()
        Returns:
        the file in which the violation was detected.
      • getLineNumber

        public int getLineNumber()
        Returns:
        the line number where the violation was detected. The first line number is 1
      • getMessage

        public java.lang.String getMessage()
        Returns:
        the message describing the violation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object