Class CSVField
- java.lang.Object
-
- com.orchestranetworks.addon.dex.mapping.CSVField
-
-
Constructor Summary
Constructors Constructor 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 andFieldAttributeenumeration.CSVField(int index, java.lang.String name, java.lang.String label)Used to create a CSV field with specified index, name and label.CSVField(int index, java.lang.String name, java.lang.String label, FieldAttribute fieldAttribute)Used to create a CSV field with specified index, name, label andFieldAttributeenumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDateFormatPattern()Returns the specified date, time or date time format if the field is date, time or date time type.FieldAttributegetFieldAttribute()Returns the specifiedFieldAttributefor this CSV field.intgetIndex()Returns the specified field index.java.lang.StringgetLabel()Returns the specified field label.java.lang.StringgetName()Returns the specified field name.inthashCode()voidsetDateFormatPattern(java.lang.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 Detail
-
CSVField
public CSVField(int index) throws DataExchangeExceptionUsed 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
public CSVField(int index, FieldAttribute fieldAttribute) throws DataExchangeExceptionUsed to create a CSV field with specified index andFieldAttributeenumeration. If theFieldAttributeenumeration 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
public CSVField(int index, java.lang.String name, java.lang.String label) throws DataExchangeExceptionUsed to create a CSV field with specified index, name and label.- Throws:
DataExchangeException
-
CSVField
public CSVField(int index, java.lang.String name, java.lang.String label, FieldAttribute fieldAttribute) throws DataExchangeExceptionUsed to create a CSV field with specified index, name, label andFieldAttributeenumeration. If theFieldAttributeenumeration 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 Detail
-
getName
public java.lang.String getName()
Returns the specified field name.
-
getLabel
public java.lang.String getLabel()
Returns the specified field label.
-
getIndex
public int getIndex()
Returns the specified field index.
-
getDateFormatPattern
public java.lang.String getDateFormatPattern()
Returns the specified date, time or date time format if the field is date, time or date time type.
-
setDateFormatPattern
public void setDateFormatPattern(java.lang.String dateFormatPattern)
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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getFieldAttribute
public final FieldAttribute getFieldAttribute()
Returns the specifiedFieldAttributefor this CSV field.- Since:
- 2.4.0
-
-