Class TableContentProblem
java.lang.Object
gov.nasa.pds.tools.validate.ValidationProblem
gov.nasa.pds.tools.validate.ContentProblem
gov.nasa.pds.tools.validate.content.table.TableContentProblem
public class TableContentProblem extends ContentProblem
Class that stores information about an error that has occurred during
table content validation.
- Author:
- mcayanan
-
Field Summary
Fields inherited from class gov.nasa.pds.tools.validate.ContentProblem
label
-
Constructor Summary
Constructors Constructor Description TableContentProblem(ExceptionType exceptionType, ProblemType problemType, String message, URL source, URL label, int table, int record, int field)
Constructor.TableContentProblem(ProblemDefinition defn, URL source)
Constructor.TableContentProblem(ProblemDefinition defn, URL source, URL label, int table, int record, int field)
Constructor.TableContentProblem(ProblemDefinition defn, URL source, URL label, Integer table, Integer record)
Constructor. -
Method Summary
Methods inherited from class gov.nasa.pds.tools.validate.ContentProblem
getLabel
Methods inherited from class gov.nasa.pds.tools.validate.ValidationProblem
getAncestorTargets, getColumnNumber, getLineNumber, getMessage, getProblem, getProblemDefinitionId, getSource, getTarget, setAncestorTargets, setColumnNumber, setLineNumber, setMessage, setSource, setTarget
-
Constructor Details
-
TableContentProblem
public TableContentProblem(ExceptionType exceptionType, ProblemType problemType, String message, URL source, URL label, int table, 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 associated with the message.field
- The index of the field associated with the message.
-
TableContentProblem
public TableContentProblem(ProblemDefinition defn, URL source, URL label, int table, int 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.table
- The index of the table 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
Constructor.- Parameters:
defn
- The problem definition.source
- The data file url of the exception.
-
-
Method Details
-
getTable
- Returns:
- the table index.
-
getRecord
- Returns:
- the record index.
-
getField
- Returns:
- the field index.
-