|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.treebind.DefaultPipeElementImplementation
org.treebind.JavaObjectSink
Sink designed create Java objects.
Sink| Constructor Summary | |
JavaObjectSink()
Creates a new JavaObjectSink. |
|
JavaObjectSink(Pipe pipe)
Creates a new JavaObjectSink embedded in a pipe. |
|
| Method Summary | |
java.lang.String |
adderName(Name name)
Method used internally to define the "adder" name for a property. |
void |
addLeaf(Name role,
Name nature,
java.lang.Object value)
Pour a new LeafProperty into the sink. |
void |
endProperty()
Declares to the sink the end of the current ComplexProperty. |
java.lang.String |
genericAdderName(Name name)
Method used internally to define the name of a generic "adder" method. |
java.lang.Object |
getObject()
Get the top level object created by the sink. |
java.lang.String |
setterName(Name name)
Method used internally to define the "setter" name for a property. |
void |
startProperty(Name role,
Name nature)
Start pouring a new ComplexProperty into the sink. |
| 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 JavaObjectSink()
public JavaObjectSink(Pipe pipe)
pipe - the pipe containing the JavaObjectSink.| Method Detail |
public java.lang.String adderName(Name name)
name - a property name.
public void addLeaf(Name role,
Name nature,
java.lang.Object value)
throws java.lang.Exception
SinkLeafProperty into the sink.
addLeaf in interface Sinkrole - role the role of the propertynature - nature the nature of the propertyvalue - value of the property
java.lang.Exception - when anything goes wrong
public void endProperty()
throws java.lang.Exception
SinkComplexProperty.
endProperty in interface Sinkjava.lang.Exception - when anything goes wrongpublic java.lang.String genericAdderName(Name name)
public java.lang.Object getObject()
public java.lang.String setterName(Name name)
name - a property name.
public void startProperty(Name role,
Name nature)
throws java.lang.Exception
SinkComplexProperty into the sink.
startProperty in interface Sinkrole - the role of the propertynature - the nature of the property
java.lang.Exception - when anything goes wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||