|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jplist.input.PojoBuilder
public class PojoBuilder
Builds a JPList Document object from a POJO. The builder will introspect the bean, and execute all the public getXXX() methods that the POJO exposes (with the exception of Object#getObject()). The Document object stores the values returned in a PList Dictionary as XXX = value of getXXX(). If the returned object is any of the primitive types or their wrappers, the builder will call the object's * toString() method and store the value as a JPList StringElement object. If the value returned is a object that implements the java.util.Collection interface, the builder will attempt to iterate through its elements and store the resultant value as a JPList ArrayElement. If the value returned is some other object, the builder will recursively execute the public getXXX() methods of the returned object, using the rules outlined above, and represent the value as an embedded DictionaryElement.
Constructor Summary | |
---|---|
PojoBuilder()
Builds a new PojoBuilder object. |
Method Summary | |
---|---|
Document |
build(java.lang.Object obj)
Builds a JPList Document object from an Object. |
java.util.List |
getPublicAccessors(java.lang.Class clazz)
Returns a List of public getXXX() Method objects for the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PojoBuilder()
Method Detail |
---|
public Document build(java.lang.Object obj) throws JPListException
obj
- the POJO to build from.
JPListException
- if there was a problem.public java.util.List getPublicAccessors(java.lang.Class clazz)
clazz
- the Class to introspect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |