Class ExtendedFieldDefaultValue
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldDefaultValue
-
public class ExtendedFieldDefaultValue extends Object
Class for constructing, validating, and keeping the default value for a single ExtendedField.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
datatype
The datatype of this ExtendedFieldDefaultValue.protected String
format
The formatting pattern of this ExtendedFieldDefaultValue.protected static String[]
possibleFalseValues
Array of strings considered to be "false" values.protected static String[]
possibleTrueValues
Array of strings considered to be "true" values.protected boolean
valid
The valid state of this ExtendedFieldDefaultValue.protected String
value
The value of this ExtendedFieldDefaultValue.
-
Constructor Summary
Constructors Constructor Description ExtendedFieldDefaultValue(String aValue, String aFormat, int aDatatype)
Constructor for the ExtendedFieldDefaultValues class.
-
-
-
Field Detail
-
possibleTrueValues
protected static final String[] possibleTrueValues
Array of strings considered to be "true" values.
-
possibleFalseValues
protected static final String[] possibleFalseValues
Array of strings considered to be "false" values.
-
valid
protected final boolean valid
The valid state of this ExtendedFieldDefaultValue.
-
value
protected String value
The value of this ExtendedFieldDefaultValue.
-
format
protected String format
The formatting pattern of this ExtendedFieldDefaultValue.
-
datatype
protected int datatype
The datatype of this ExtendedFieldDefaultValue.
-
-
Method Detail
-
isValid
public boolean isValid()
- Returns:
- true, if ExtendedFieldDefaultValue is valid, false otherwise.
-
getDBValue
public String getDBValue()
- Returns:
- String, the DB-Value of the a Value
-
-