Constructor and Description |
---|
AbstractFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
isLeaf() |
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder,
java.lang.Object node,
java.util.Map attributes) |
void |
onNodeCompleted(FactoryBuilderSupport builder,
java.lang.Object parent,
java.lang.Object node) |
void |
setChild(FactoryBuilderSupport builder,
java.lang.Object parent,
java.lang.Object child) |
void |
setParent(FactoryBuilderSupport builder,
java.lang.Object parent,
java.lang.Object child) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public boolean isLeaf()
public boolean onHandleNodeAttributes(FactoryBuilderSupport builder, java.lang.Object node, java.util.Map attributes)
onHandleNodeAttributes
in interface Factory
builder
- the FactoryBuildernode
- the node (returned from newINstance) to consider the attributes forattributes
- the attributes, a mutable setpublic void onNodeCompleted(FactoryBuilderSupport builder, java.lang.Object parent, java.lang.Object node)
onNodeCompleted
in interface Factory
builder
- the FactoryBuilderparent
- the parent node (null if 'root')node
- the node just completedpublic void setParent(FactoryBuilderSupport builder, java.lang.Object parent, java.lang.Object child)
public void setChild(FactoryBuilderSupport builder, java.lang.Object parent, java.lang.Object child)