|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.treebind.DefaultPipeElementImplementation
org.treebind.DefaultFilterImplementation
org.treebind.TreeBom
A Filter implementation that keeps a copy of the
Propertys that it receives and can pour them into a
Sink again if needed. A TreeBom can be used as a
Sink, ie without having a Sink
attached and in that case it will just keep a copy of the properties to pour
them when needed. TreeBom can also give you its root
Property and, in this case it exposes the TreeBind
Object Model justifying its name.
Filter,
Sink| Constructor Summary | |
TreeBom()
Create a new TreeBom out of its pipe. |
|
TreeBom(Pipe pipe)
Create a TreeBom in its Pipe |
|
| Method Summary | |
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. |
Property |
getRoot()
Get the TreeBom root property. |
void |
pour(Sink sink)
Pours the TreeBom into a sink. |
void |
pour(Sink sink,
Property property)
Pours a property into the sink associated to the TreeBom. |
void |
startProperty(Name role,
Name nature)
Start pouring a new ComplexProperty into the sink. |
| Methods inherited from class org.treebind.DefaultFilterImplementation |
convertNature, convertRole, getSink, setSink |
| 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.Source |
getSink, setSink |
| Methods inherited from interface org.treebind.PipeElement |
getPipe, setPipe |
| Constructor Detail |
public TreeBom()
public TreeBom(Pipe pipe)
Pipe
pipe - the pipe| Method Detail |
public void addLeaf(Name role,
Name nature,
java.lang.Object value)
throws java.lang.Exception
SinkLeafProperty into the sink.
addLeaf in interface SinkaddLeaf in class DefaultFilterImplementationjava.lang.Exception
public void endProperty()
throws java.lang.Exception
SinkComplexProperty.
endProperty in interface SinkendProperty in class DefaultFilterImplementationjava.lang.Exceptionpublic Property getRoot()
public void pour(Sink sink)
throws java.lang.Exception
sink - the sink
java.lang.Exception - if anything goes wrong
public void pour(Sink sink,
Property property)
throws java.lang.Exception
sink - the sinkproperty - the property
java.lang.Exception - if anything goes wrong
public void startProperty(Name role,
Name nature)
throws java.lang.Exception
SinkComplexProperty into the sink.
startProperty in interface SinkstartProperty in class DefaultFilterImplementationjava.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||