|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.core.UjoCoder
public class UjoCoder
A tool for encoding an object to a text and a text back to the object.
| Field Summary | |
|---|---|
static java.lang.Class[] |
CONSTRUCTOR_TYPE
Typ konstruktoru |
| Constructor Summary | |
|---|---|
UjoCoder()
|
|
| Method Summary | |
|---|---|
protected byte[] |
decodeBytes(java.lang.String hexString)
Decode HexaString into byte array. |
java.lang.Object |
decodeValue(java.lang.Class type,
java.lang.String aValue)
Restore an Object value from a String representation. |
java.lang.Object |
decodeValue(UjoProperty property,
java.lang.String aValue,
java.lang.Class type)
Restore an Object value from a String representation and write it into ujo. |
protected java.lang.String |
encodeBytes(byte[] bytes)
Encode bytes to hexadecimal String. |
java.lang.String |
encodeValue(java.lang.Object value,
boolean regenerationTest)
Convert value to a String representation. |
char |
getSeparator()
Returns a list separator |
boolean |
isContainerType(java.lang.Class baseType)
Returns true, if the Class is type of Ujo, List or Object[]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Class[] CONSTRUCTOR_TYPE
| Constructor Detail |
|---|
public UjoCoder()
| Method Detail |
|---|
public char getSeparator()
public java.lang.String encodeValue(java.lang.Object value,
boolean regenerationTest)
value - The valueregenerationTest - Perform a decoding for an unknown data types.
public java.lang.Object decodeValue(UjoProperty property,
java.lang.String aValue,
java.lang.Class type)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Object decodeValue(java.lang.Class type,
java.lang.String aValue)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected byte[] decodeBytes(java.lang.String hexString)
hexString - NULL value is not supported.
protected java.lang.String encodeBytes(byte[] bytes)
bytes - NULL value is not supported
public boolean isContainerType(java.lang.Class baseType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||