org.progeeks.graph
Class MetaObjectGraph

java.lang.Object
  extended by com.phoenixst.plexus.DefaultGraph
      extended by org.progeeks.graph.EdgeIdentityGraph
          extended by org.progeeks.graph.MetaObjectGraph
All Implemented Interfaces:
com.phoenixst.plexus.Graph, com.phoenixst.plexus.ObservableGraph, java.io.Serializable

public class MetaObjectGraph
extends EdgeIdentityGraph

A graph representing the property relationships between a set of meta-objects and the property values. The entire meta-object property hierarchy is loaded in for every object added to the graph. Each meta-object node is watched for changes to adjust the graph as necessary.

Version:
$Revision: 1.2 $
Author:
Paul Speed
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.phoenixst.plexus.Graph
com.phoenixst.plexus.Graph.Edge
 
Constructor Summary
MetaObjectGraph()
           
 
Method Summary
protected  boolean addConnectedValue(java.lang.Object userObject, MetaObject parent, java.lang.Object value)
           
 boolean addMetaObject(MetaObject mo)
           
 boolean addNode(java.lang.Object node)
          Adds the node to the graph.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.progeeks.graph.EdgeIdentityGraph
createEdge
 
Methods inherited from class com.phoenixst.plexus.DefaultGraph
addEdge, addEdge, addGraphListener, adjacentNodes, containsEdge, containsNode, degree, degree, edgeAdded, edgeAdding, edgeRemoved, edgeRemoving, edges, equals, getAdjacentNode, getEdge, getIncidentEdge, getNode, hashCode, incidentEdges, nodeAdded, nodeAdding, nodeRemoved, nodeRemoving, nodes, removeEdge, removeGraphListener, removeNode, toString, traverser
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaObjectGraph

public MetaObjectGraph()
Method Detail

addNode

public boolean addNode(java.lang.Object node)
Adds the node to the graph. If the node is a meta-object then any meta-object-valued properties are also added with appropriate edge relationships.

Specified by:
addNode in interface com.phoenixst.plexus.Graph
Overrides:
addNode in class com.phoenixst.plexus.DefaultGraph

addConnectedValue

protected boolean addConnectedValue(java.lang.Object userObject,
                                    MetaObject parent,
                                    java.lang.Object value)

addMetaObject

public boolean addMetaObject(MetaObject mo)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2003 Paul Speed. All Rights Reserved.