Package gov.nasa.pds.tools.util
Class TableCharacterUtil
java.lang.Object
gov.nasa.pds.tools.util.TableCharacterUtil
public class TableCharacterUtil extends Object
Util class to allow reading of a record and check for values between fields.
-
Constructor Summary
Constructors Constructor Description TableCharacterUtil(URL target, ProblemListener listener)Creates a new instance. -
Method Summary
Modifier and Type Method Description ProblemListenergetListener()URLgetTarget()voidparseFieldsInfo()Parse the fields info for field_location, field_length and such and store them in lists.voidvalidateInBetweenFields(String record, int recordNumber)Validate in between fields for non-blanks values.
-
Constructor Details
-
TableCharacterUtil
Creates a new instance.
-
-
Method Details
-
getTarget
-
getListener
-
parseFieldsInfo
public void parseFieldsInfo()Parse the fields info for field_location, field_length and such and store them in lists.- Parameters:
None-
-
validateInBetweenFields
Validate in between fields for non-blanks values. This test is optional and only call if the user requested it.- Parameters:
record- The record being validated (as text)recordNumber- Where in the file is this record.
-