com.redspr.beanldom.info
Class ValueInfo
java.lang.Object
|
+--com.redspr.beanldom.info.BaseInfo
|
+--com.redspr.beanldom.info.ValueInfo
- All Implemented Interfaces:
- ClassInfo
- public final class ValueInfo
- extends BaseInfo
Info for an object that should be converted to a string
- Author:
- Sam Hough
Method Summary |
int |
getType()
How should the implementation handle objects of this class |
String |
getValue(Object target)
convert target to a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueInfo
public ValueInfo()
getType
public int getType()
- Description copied from interface:
ClassInfo
- How should the implementation handle objects of this class
getValue
public String getValue(Object target)
- Description copied from interface:
ClassInfo
- convert target to a string. Clients are obliged to use this
method to convert objects of this class to strings if getType
has returned VALUE. Returns null to indicate no value for an
attribute/not text element for element.
- Specified by:
getValue
in interface ClassInfo
- Overrides:
getValue
in class BaseInfo