| Constructor and Description |
|---|
CSVField(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 and
FieldAttribute enumeration. |
CSVField(int index,
String name,
String label)
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 and
FieldAttribute enumeration. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDateFormatPattern()
Returns the specified date, time or date time format if the field is date, time or date time type.
|
FieldAttribute |
getFieldAttribute()
Returns the specified
FieldAttribute for this CSV field. |
int |
getIndex()
Returns the specified field index.
|
String |
getLabel()
Returns the specified field label.
|
String |
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.
|
public CSVField(int index)
throws DataExchangeException
DataExchangeExceptionpublic CSVField(int index,
FieldAttribute fieldAttribute)
throws DataExchangeException
FieldAttribute enumeration. If the FieldAttribute enumeration is not a NO_SOURCE_FIELD, the index must be equal to or greater than zero. Otherwise, an exception will be thrown.DataExchangeExceptionpublic CSVField(int index,
String name,
String label)
throws DataExchangeException
DataExchangeExceptionpublic CSVField(int index,
String name,
String label,
FieldAttribute fieldAttribute)
throws DataExchangeException
FieldAttribute enumeration. If the FieldAttribute enumeration is not a NO_SOURCE_FIELD, the index must be equal or greater than zero. Otherwise, an exception will be thrown.DataExchangeExceptionpublic String getName()
public String getLabel()
public int getIndex()
public String getDateFormatPattern()
public void setDateFormatPattern(String dateFormatPattern)
public final FieldAttribute getFieldAttribute()
FieldAttribute for this CSV field.