Class CSVField
java.lang.Object
com.orchestranetworks.addon.dex.mapping.CSVField
- All Implemented Interfaces:
Field
Specifies CSV field configuration information.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorDescriptionCSVField
(int index) Used to create a CSV field with specified index.CSVField
(int index, FieldAttribute fieldAttribute) Used to create a CSV field with specified index andFieldAttribute
enumeration.Used to create a CSV field with specified index, name and label.CSVField
(int index, String name, String label, FieldAttribute fieldAttribute) Used to create a CSV field with specified index, name, label andFieldAttribute
enumeration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the specified date, time or date time format if the field is date, time or date time type.final FieldAttribute
Returns the specifiedFieldAttribute
for this CSV field.int
getIndex()
Returns the specified field index.getLabel()
Returns the specified field label.getName()
Returns the specified field name.int
hashCode()
void
setDateFormatPattern
(String dateFormatPattern) Sets a date, time or date time format string to this value if the field is date, time or date time type.
-
Constructor Details
-
CSVField
Used to create a CSV field with specified index. Index starts with zero. If index less than zero, an exception will be thrown.- Throws:
DataExchangeException
-
CSVField
Used to create a CSV field with specified index andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the index must be equal to or greater than zero. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
CSVField
Used to create a CSV field with specified index, name and label.- Throws:
DataExchangeException
-
CSVField
public CSVField(int index, String name, String label, FieldAttribute fieldAttribute) throws DataExchangeException Used to create a CSV field with specified index, name, label andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the index must be equal or greater than zero. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
-
Method Details
-
getName
Returns the specified field name. -
getLabel
Returns the specified field label. -
getIndex
public int getIndex()Returns the specified field index. -
getDateFormatPattern
Returns the specified date, time or date time format if the field is date, time or date time type. -
setDateFormatPattern
Sets a date, time or date time format string to this value if the field is date, time or date time type. -
hashCode
public int hashCode() -
equals
-
getFieldAttribute
Returns the specifiedFieldAttribute
for this CSV field.- Since:
- 2.4.0
-