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
DataExchangeException
public 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.DataExchangeException
public CSVField(int index, String name, String label) throws DataExchangeException
DataExchangeException
public 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.DataExchangeException
public 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.