|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.treebind.DefaultPipeElementImplementation
org.treebind.JavaObjectSource
Source designed to read Java objects.
Source| Constructor Summary | |
JavaObjectSource()
Creates a new JavaObjectSource. |
|
JavaObjectSource(JavaObject2XmlSaxPipe pipe)
Creates a new JavaObjectSource in a pipe. |
|
| Method Summary | |
Name |
getNature(java.lang.reflect.Method method,
java.lang.Object value,
boolean iterated)
This method is used internally to derive the nature of a property from a java method. |
Name |
getRole(java.lang.reflect.Method method,
java.lang.Object value,
boolean iterated)
This method is used internally to derive the role of a property from a java method. |
Sink |
getSink()
Get the Sink in which properties will be poured. |
void |
pourObject(java.lang.Object object)
Pours an object into the source and feed its sink with its properties. |
void |
setSink(Sink sink)
Sets the Sink in which properties will be poured. |
| Methods inherited from class org.treebind.DefaultPipeElementImplementation |
getPipe, setPipe |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.treebind.PipeElement |
getPipe, setPipe |
| Constructor Detail |
public JavaObjectSource()
public JavaObjectSource(JavaObject2XmlSaxPipe pipe)
pipe - the pipe that will contain the JavaObjectSource.| Method Detail |
public Name getNature(java.lang.reflect.Method method,
java.lang.Object value,
boolean iterated)
JavaClassName.JavaClassName(Object)
created with the value of the Java property.
method - the method.value - the value.iterated - flag indicating that the property has multiple values.
public Name getRole(java.lang.reflect.Method method,
java.lang.Object value,
boolean iterated)
JavaMethodName.JavaMethodName(Method, boolean)
created with the Java method and iterated flag.
method - the method.value - the value.iterated - flag indicating that the property has multiple values.
public Sink getSink()
SourceSink in which properties will be poured.
getSink in interface Source
public void pourObject(java.lang.Object object)
throws java.lang.Exception
object - the object.
java.lang.Exception
java.lang.Exception - any exception that can occur while retrieving the property
and pouring it into the sink.public void setSink(Sink sink)
SourceSink in which properties will be poured.
setSink in interface Sourcesink - the sink
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||