|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.model.GraphObjectInfoGeneratorRegistry
The GraphObjectInfoGeneratorRegistry is responsible for managing
the registration of EdgeInfoGenerator and
NodeInfoGenerator instances.
The GraphObjectInfoGeneratorRegistry allows to register one
instance of a EdgeInfoGenerator and one instance of a
NodeInfoGenerator.
One of the two instances get called by the GraphAPI in case an
EdgeInfo or a NodeInfo has to be recreated from
its string representation.
Since it is not possible to register more than one instance of an
EdgeInfoGenerator or a NodeInfoGenerator both
of them must be able to generate each kind of EdgeInfo or
NodeInfo that is used.
The registered EdgeInfoGenerator and
NodeInfoGenerator instances are used by the GraphAPI to create
new instances of EdgeInfo and NodeInfo instances.
The indirectly automatic creation of these objects is needed for instance
in case a GraphObject instance is serialized and afterwards
deserialized for some reason.
| Method Summary | |
static void |
clear()
Removes all key-generator mappings from the registry |
static EdgeInfoGenerator |
getEdgeInfoGenerator()
Returns the currently registered EdgeInfoGenerator or
null if none is registered. |
static NodeInfoGenerator |
getNodeInfoGenerator()
Returns the currently registered NodeInfoGenerator or
null if none is registered. |
static void |
register(EdgeInfoGenerator generator)
Registers the EdgeInfoGenerator given by
generator. |
static void |
register(NodeInfoGenerator generator)
Registers the NodeInfoGenerator given by
generator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void register(EdgeInfoGenerator generator)
EdgeInfoGenerator given by
generator.
generator - the EdgeInfoGenerator to be registered.public static void register(NodeInfoGenerator generator)
NodeInfoGenerator given by
generator.
generator - the NodeInfoGenerator to be registered.public static EdgeInfoGenerator getEdgeInfoGenerator()
EdgeInfoGenerator or
null if none is registered.
EdgeInfoGenerator or nullpublic static NodeInfoGenerator getNodeInfoGenerator()
NodeInfoGenerator or
null if none is registered.
NodeInfoGenerator or nullpublic static void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||