|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.converter.ArrayConverter
com.jidesoft.converter.MultipleEnumConverter
public class MultipleEnumConverter
MultipleEnumConverter is a special ArrayConverter that converts a string to/from array. Each element in the element is converted to the object using a specified EnumConverter.
| Constructor Summary | |
|---|---|
MultipleEnumConverter(String separator,
EnumConverter converter)
|
|
| Method Summary | |
|---|---|
protected Object |
fromString(int i,
String s,
ConverterContext context)
|
Object |
fromString(String string,
ConverterContext context)
Converts from String to an object. |
ConverterContext |
getContext()
Gets the converter context of this converter. |
EnumConverter |
getEnumConverter()
|
Class<?> |
getType()
|
void |
setEnumConverter(EnumConverter enumConverter)
|
boolean |
supportFromString(String string,
ConverterContext context)
If it supports fromString. |
boolean |
supportToString(Object object,
ConverterContext context)
If it supports toString method. |
protected String |
toString(int i,
Object o,
ConverterContext context)
|
String |
toString(Object object,
ConverterContext context)
Converts from object to String based on current locale. |
| Methods inherited from class com.jidesoft.converter.ArrayConverter |
|---|
arrayFromString, arrayToString, getElementClass, isUseTokenizer, setUseTokenizer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleEnumConverter(String separator,
EnumConverter converter)
| Method Detail |
|---|
public Class<?> getType()
public EnumConverter getEnumConverter()
public void setEnumConverter(EnumConverter enumConverter)
public String toString(Object object,
ConverterContext context)
ObjectConverter
object - object to be convertedcontext - converter context to be used
public boolean supportToString(Object object,
ConverterContext context)
ObjectConverter
object - object to be convertedcontext - converter context to be used
public Object fromString(String string,
ConverterContext context)
ObjectConverter
string - the stringcontext - context to be converted
public boolean supportFromString(String string,
ConverterContext context)
ObjectConverter
string - the stringcontext - context to be converted
protected String toString(int i,
Object o,
ConverterContext context)
toString in class ArrayConverter
protected Object fromString(int i,
String s,
ConverterContext context)
fromString in class ArrayConverterpublic ConverterContext getContext()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||