Class ExtendedField
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.extendedfield.ExtendedField
-
- All Implemented Interfaces:
Serializable
public class ExtendedField extends Object implements Serializable
This class represents one Extended Field.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtendedField(Long aExtendedFieldID, Long aExtendedFieldTypeID, String aName, String aFormattingPattern, int aDatatype, boolean aMandatory, int aSequenceNr, String aDefaultValue, String aOptions, int aMaxlen)
Constructor for ExtendedField, that requires all data.ExtendedField(String aExtendedFieldTypeID)
Constructor for the extendedfield with only one value - the id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDatatype()
String
getDefaultValue()
Long
getExtendedFieldID()
Long
getExtendedFieldTypeID()
String
getFormattingPattern()
String
getJspFieldname()
int
getMaxlen()
String
getName()
String
getOptions()
Map<String,String>
getOptionValues()
int
getSequencenr()
boolean
isMandatory()
void
setDatatype(int datatype)
Set the datatype of this extendedField.void
setDefaultValue(String defaultValue)
Set the defaultvalue of this extendedField.void
setExtendedFieldID(Long extendedFieldID)
Set the ID of the extendedField..void
setExtendedFieldTypeID(Long extendedFieldTypeID)
Set the name of the extendedFieldTypeID.void
setFormattingPattern(String aFormattingPattern)
Set a formatting pattern for this extendefield.void
setMandatory(boolean mandatory)
Set the mandatory-state of this extendedField.void
setMaxlen(int aMaxlen)
Set the maxlen of this extendedField.void
setName(String name)
Set the name of the extendedField.void
setOptions(String options)
Set the options of the extendedField.void
setSequencenr(int sequencenr)
Set the sequencenr of this extendedField.String
toString()
-
-
-
Constructor Detail
-
ExtendedField
public ExtendedField(String aExtendedFieldTypeID)
Constructor for the extendedfield with only one value - the id.- Parameters:
aExtendedFieldTypeID
- the Id of the extendededfieldtype
-
ExtendedField
public ExtendedField(Long aExtendedFieldID, Long aExtendedFieldTypeID, String aName, String aFormattingPattern, int aDatatype, boolean aMandatory, int aSequenceNr, String aDefaultValue, String aOptions, int aMaxlen)
Constructor for ExtendedField, that requires all data.- Parameters:
aExtendedFieldID
- The extendedfieldId of the extendedfieldaExtendedFieldTypeID
- The extendedfieldtypeId of the extendedfieldaName
- The name of the extendedfieldaFormattingPattern
- The name of the extendedfieldaDatatype
- The datatype of the extendedfieldaMandatory
- The mandatory state of the extendedfieldaSequenceNr
- The sequencenr of the extendedfieldaDefaultValue
- The default value of the extendedfieldaOptions
- The options of the extendedfieldaMaxlen
- The maxlen of the extendedfield
-
-
Method Detail
-
getExtendedFieldID
public Long getExtendedFieldID()
- Returns:
- the extendedFieldID
-
setExtendedFieldID
public void setExtendedFieldID(Long extendedFieldID)
Set the ID of the extendedField..- Parameters:
extendedFieldID
- the ID of the extendedField..
-
getExtendedFieldTypeID
public Long getExtendedFieldTypeID()
- Returns:
- the extendedFieldTypeID
-
setExtendedFieldTypeID
public void setExtendedFieldTypeID(Long extendedFieldTypeID)
Set the name of the extendedFieldTypeID.- Parameters:
extendedFieldTypeID
- an extendedfieldtypeId
-
getName
public String getName()
- Returns:
- the name of the extendedField
-
setName
public void setName(String name)
Set the name of the extendedField.- Parameters:
name
- the name of the extendedField
-
getFormattingPattern
public String getFormattingPattern()
- Returns:
- the formatting pattern of the extendedField
-
setFormattingPattern
public void setFormattingPattern(String aFormattingPattern)
Set a formatting pattern for this extendefield.- Parameters:
aFormattingPattern
- a formatting pattern for this extendedfield
-
getDatatype
public int getDatatype()
- Returns:
- the datatype of the extendedField
-
setDatatype
public void setDatatype(int datatype)
Set the datatype of this extendedField.- Parameters:
datatype
- a datatype for this extendedfield
-
isMandatory
public boolean isMandatory()
- Returns:
- true, if extendedfield is mandatory, otherwise false.
-
setMandatory
public void setMandatory(boolean mandatory)
Set the mandatory-state of this extendedField.- Parameters:
mandatory
- A mandatory-state of this extendedField
-
getSequencenr
public int getSequencenr()
- Returns:
- the sequencenr of the extendedField
-
setSequencenr
public void setSequencenr(int sequencenr)
Set the sequencenr of this extendedField.- Parameters:
sequencenr
- a new sequencenr of this extendedField.
-
getDefaultValue
public String getDefaultValue()
- Returns:
- the default value of the extendedField
-
setDefaultValue
public void setDefaultValue(String defaultValue)
Set the defaultvalue of this extendedField.- Parameters:
defaultValue
- the defaultvalue of this extendedField.
-
getOptions
public String getOptions()
- Returns:
- the options of the extendedField
-
getMaxlen
public int getMaxlen()
- Returns:
- the max length of the extendedField
-
setMaxlen
public void setMaxlen(int aMaxlen)
Set the maxlen of this extendedField.- Parameters:
aMaxlen
- for this extendedfield
-
setOptions
public void setOptions(String options)
Set the options of the extendedField.- Parameters:
options
- the options of the extendedField
-
getJspFieldname
public String getJspFieldname()
- Returns:
- the JSP field name.
-
-