org.apache.ojb.broker
Class GraphNode
java.lang.Object
org.apache.ojb.broker.GraphNode
- All Implemented Interfaces:
- java.io.Serializable
- public class GraphNode
- extends java.lang.Object
- implements java.io.Serializable
GraphNode and GraphEdge model oriented graph with named nodes.
In this case there are two relations between two classes.
- Author:
- Oleg Nitz
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GraphNode
public GraphNode()
GraphNode
public GraphNode(int id,
java.lang.String name,
int locationId)
GraphNode
public GraphNode(java.lang.String name)
addOutgoingEdge
public void addOutgoingEdge(GraphEdge edge)
addIncomingEdge
public void addIncomingEdge(GraphEdge edge)
getOutgoingEdges
public java.util.Collection getOutgoingEdges()
getIncomingEdges
public java.util.Collection getIncomingEdges()
getName
public java.lang.String getName()
getLocationId
public int getLocationId()
getLocation
public Point getLocation()
getId
public int getId()
setOutgoingEdges
public void setOutgoingEdges(java.util.Collection edges)
setIncomingEdges
public void setIncomingEdges(java.util.Collection edges)
setName
public void setName(java.lang.String name)
setLocationId
public void setLocationId(int locationId)
setLocation
public void setLocation(Point location)
setId
public void setId(int id)
toString
public java.lang.String toString()
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14