|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.esw.graph.DefaultNodeFactory
Defines the methods for creation of INode instances.
This is the default implementation of the INodeFactory interface
which simply creates and returns the default ESW implementation of the
INode interface.
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 );
| Constructor Summary | |
DefaultNodeFactory()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultNodeFactory()
| Method Detail |
public INode createNode()
INode instance.createNode in interface INodeFactoryINode instance.public INode createNode(java.lang.Object aID)
INode instance with the specified identifier.createNode in interface INodeFactoryaID - 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.createNode in interface INodeFactoryaID - 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 | ||||||||