com.partnersoft.modules.inspection.data
Class CsvPicklistItem
java.lang.Object
com.partnersoft.modules.inspection.data.CsvPicklistItem
- All Implemented Interfaces:
- CsvDataItem
public class CsvPicklistItem
- extends java.lang.Object
- implements CsvDataItem
|
Constructor Summary |
CsvPicklistItem(java.lang.String type,
java.util.List<java.lang.String> values)
|
|
Method Summary |
void |
addValue(java.lang.String value)
|
java.util.List<java.lang.String> |
getCsvFieldNames()
Returns a list of csv field names in order. |
java.lang.String |
getType()
|
java.util.List<java.lang.String> |
getValues()
|
void |
removeValue(java.lang.String value)
|
void |
setType(java.lang.String type)
|
void |
setValues(java.util.List<java.lang.String> values)
|
java.util.List<com.partnersoft.data.Naming> |
toCsvNamingEntry()
Converts object's current state to csv entry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvPicklistItem
public CsvPicklistItem(java.lang.String type,
java.util.List<java.lang.String> values)
- Parameters:
type - values -
getCsvFieldNames
public java.util.List<java.lang.String> getCsvFieldNames()
- Description copied from interface:
CsvDataItem
- Returns a list of csv field names in order.
- Specified by:
getCsvFieldNames in interface CsvDataItem
- Returns:
toCsvNamingEntry
public java.util.List<com.partnersoft.data.Naming> toCsvNamingEntry()
- Description copied from interface:
CsvDataItem
- Converts object's current state to csv entry.
List of Namings is returned if object requires
multiple lines to be expressed and user wants
to alter specific values.
- Specified by:
toCsvNamingEntry in interface CsvDataItem
- Returns:
getType
public java.lang.String getType()
- Returns:
- the type
setType
public void setType(java.lang.String type)
- Parameters:
type - the type to set
getValues
public java.util.List<java.lang.String> getValues()
- Returns:
- the values
setValues
public void setValues(java.util.List<java.lang.String> values)
- Parameters:
values - the values to set
addValue
public void addValue(java.lang.String value)
removeValue
public void removeValue(java.lang.String value)