|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.swinger.text2gui.CollectionToTreePathMapper
public final class CollectionToTreePathMapper
Converts a collection or array into a TreePath
containing the
elements.
Field Summary | |
---|---|
static CollectionToTreePathMapper |
instance
The singleton instance of this class. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Make a TreePath out of the arguments and print it out. |
java.lang.Object |
map(java.lang.Object obj)
Create a new TreePath using either an instance of
Object[] or Collection . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CollectionToTreePathMapper instance
Method Detail |
---|
public java.lang.Object map(java.lang.Object obj)
TreePath
using either an instance of
Object[]
or Collection
.
map
in interface IObjectMapper
obj
- An object array or a Collection
containing
the elements in the path.
TreePath
.
java.lang.NullPointerException
- if obj
is null
.public static void main(java.lang.String[] args)
TreePath
out of the arguments and print it out.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |