org.ujoframework.extensions
Interface ValueTextable
- All Known Subinterfaces:
- ValueExportable
public interface ValueTextable
A special interface for a terminology only, an implementation is not reasnonable in the UJO Framework.
ValueTextable is every one object, wich have got implemented method toString() so that the result can be used
to restore a new equal object by its a single constructor parameter type of String.
This is a "ValueTextable" test for an Integer class:
Integer textable1 = new Integer(7);
Integer textable2 = new Integer(textable1.toString());
boolean result = textable1.equals(textable2);
Some completed ValueTextable classes from a Java API are
- Boolean
- Short
- Integer
- Long
- Float
- Double
- String
These classes have NOT behaviour of ValueTextable,
however UJO Framework supports these types similar like ValueTextable:
- Byte
- Character
- java.util.Date
- java.sql.Date (time 0:00:00.000)
- byte[]
- char[]
- Locale
- Color
- Dimension
- Rectangle
- Enum
- Class
- Charset
- List<some-type-above> with some restrictions for deserialization:
value property must be type of UjoPropertyList and
the serialized text must not contain a separator character comma ','
- Author:
- Pavel Ponec
- See Also:
UjoTextable
|
Method Summary |
java.lang.String |
toString()
A result must be acceptable for one constructor parameter (of the same class) to restore an equal object. |
toString
java.lang.String toString()
- A result must be acceptable for one constructor parameter (of the same class) to restore an equal object.
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.