|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--utilities.Converter
Converts stuff to and from strings
Constructor Summary | |
Converter()
|
Method Summary | |
static java.lang.String |
getPropertyType(java.lang.Object property)
This method returns the property type name, in string form, of the supplied property |
static java.lang.Object |
reTypeProperty(java.lang.String property,
java.lang.String type)
This method converts string data to other formats, as specified by their property info. |
static java.lang.String |
unTypeProperty(java.lang.Object property,
java.lang.String delim)
This method converts typed data to string representation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Converter()
Method Detail |
public static java.lang.Object reTypeProperty(java.lang.String property, java.lang.String type)
For those items which are lists (e.g. Vector, Hashtable), you may optionally set the object delimiter in the property. To do this, follow this example:
The default delimiter is a comma, note that the contents of aggregate types (Vector, Hashtable) will be converted to Strings.
This function and its companion unTypeProperty may be useful to other components doing string/data processing.
property
- The data to changetype
- The type to change it tounTypeProperty(java.lang.Object, java.lang.String)
public static java.lang.String getPropertyType(java.lang.Object property)
property
- The data to look atpublic static java.lang.String unTypeProperty(java.lang.Object property, java.lang.String delim)
property
- The data to changedelim
- The delim to use, if anyreTypeProperty(java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |