|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines the methods for creation of INode instances.
This is the Abstract Factory of the Abstract Factory design
pattern.
"Pluggable factories" allow the application to add its own custom
implementations of the INode interface to the framework in a
consitent, simple way. Custom implementations of the INode
interface can thus be used as if they were a standard part of the framework.
Examples:
MyCustomNodeFactory customFactory = new MyCustomNodeFactory(); NodeFactory.setNodeFactory( customFactory );
| Method Summary | |
INode |
createNode()
Creates a new empty INode instance. |
INode |
createNode(java.lang.Object aID)
Creates a new INode instance with the specified identifier. |
INode |
createNode(java.lang.Object aID,
java.lang.Object aValue)
Creates a new INode instance with the specified identifier
and value. |
| Method Detail |
public INode createNode()
INode instance.INode instance.public INode createNode(java.lang.Object aID)
INode instance with the specified identifier.aID - the identifier used by the INode instance.INode instance with the specified identifier.
public INode createNode(java.lang.Object aID,
java.lang.Object aValue)
INode instance with the specified identifier
and value.aID - the identifier used by the INode instance.aValue - the value used by the INode instance.INode instance with the specified identifier and
value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||