Class TableContentProblem


  • public class TableContentProblem
    extends ContentProblem
    Class that stores information about an error that has occurred during table content validation.
    Author:
    mcayanan
    • Constructor Detail

      • TableContentProblem

        public TableContentProblem​(ExceptionType exceptionType,
                                   ProblemType problemType,
                                   String message,
                                   URL source,
                                   URL label,
                                   int dataObjectIndex,
                                   int record,
                                   int field)
        Constructor.
        Parameters:
        exceptionType - The severity level.
        problemType - The problem type.
        message - The problem message.
        source - The data file url of the exception.
        label - The associated label url of the exception.
        table - The index of the table associated with the message.
        record - The index of the record as an integer associated with the message.
        field - The index of the field associated with the message.
      • TableContentProblem

        public TableContentProblem​(ExceptionType exceptionType,
                                   ProblemType problemType,
                                   String message,
                                   URL source,
                                   URL label,
                                   int dataObjectIndex,
                                   long record,
                                   int field)
        Constructor.
        Parameters:
        exceptionType - The severity level.
        problemType - The problem type.
        message - The problem message.
        source - The data file url of the exception.
        label - The associated label url of the exception.
        table - The index of the table associated with the message.
        record - The index of the record as an integer associated with the message.
        field - The index of the field associated with the message.
      • TableContentProblem

        public TableContentProblem​(ProblemDefinition defn,
                                   URL source,
                                   URL label,
                                   int dataObjectIndex,
                                   long record,
                                   int field)
        Constructor.
        Parameters:
        defn - The problem definition.
        source - The data file url of the exception.
        label - The associated label url of the exception.
        dataObjectIndex - The index of the data object associated with the message.
        record - The index of the record associated with the message.
        field - The index of the field associated with the message.
      • TableContentProblem

        public TableContentProblem​(ProblemDefinition defn,
                                   URL source,
                                   URL label,
                                   Integer table,
                                   Integer record)
        Constructor.
        Parameters:
        defn - The problem definition.
        source - The data file url of the exception.
        label - The associated label url of the exception.
        table - The index of the table associated with the message.
        record - The index of the record associated with the message.
      • TableContentProblem

        public TableContentProblem​(ProblemDefinition defn,
                                   URL source)
        Constructor.
        Parameters:
        defn - The problem definition.
        source - The data file url of the exception.
    • Method Detail

      • getTable

        public Integer getTable()
        Returns:
        the table index.
      • getRecord

        public long getRecord()
        Returns:
        the record index.
      • getField

        public Integer getField()
        Returns:
        the field index.