Class SpreadsheetField
java.lang.Object
com.orchestranetworks.addon.dex.mapping.SpreadsheetField
- All Implemented Interfaces:
Field
Specifies the configuration used for a spreadsheet field.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpreadsheetField
(int index) Used to create a spreadsheet field with specified index.SpreadsheetField
(int index, FieldAttribute fieldAttribute) Used to create a spreadsheet field with the specified index andFieldAttribute
enumeration.SpreadsheetField
(int index, String name, String label) Used to create a spreadsheet field with the specified index, name and label.SpreadsheetField
(int index, String name, String label, FieldAttribute fieldAttribute) Used to create a spreadsheet field with the specified index, name, label andFieldAttribute
enumeration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final FieldAttribute
Returns the specifiedFieldAttribute
for this spreadsheet field.int
getIndex()
Returns the specified field index.getLabel()
Returns the specified field label.getName()
Returns the specified field name.int
hashCode()
-
Constructor Details
-
SpreadsheetField
Used to create a spreadsheet field with specified index. Index starts with zero. If index less than zero, an exception will be thrown.- Throws:
DataExchangeException
-
SpreadsheetField
Used to create a spreadsheet field with the 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
-
SpreadsheetField
Used to create a spreadsheet field with the specified index, name and label.- Throws:
DataExchangeException
-
SpreadsheetField
public SpreadsheetField(int index, String name, String label, FieldAttribute fieldAttribute) throws DataExchangeException Used to create a spreadsheet field with the specified index, name, label 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
-
-
Method Details
-
getName
Returns the specified field name. -
getLabel
Returns the specified field label. -
getIndex
public int getIndex()Returns the specified field index. -
hashCode
public int hashCode() -
equals
-
getFieldAttribute
Returns the specifiedFieldAttribute
for this spreadsheet field.- Since:
- 2.4.0
-