net.sourceforge.jsl
Class DefaultSearchEdge

java.lang.Object
  |
  +--net.sourceforge.jsl.DefaultSearchEdge
All Implemented Interfaces:
SearchEdge

public class DefaultSearchEdge
extends Object
implements SearchEdge

Default implementation of a search edge. This should do for all standard applications.


Constructor Summary
DefaultSearchEdge(Object domainObject, SearchNode fromNode, SearchNode toNode)
          Creates a new edge between two nodes and associates this edge with the specified domain object.
 
Method Summary
 Object getDomainObject()
          Gets the domain object associated to this search egde.
 SearchNode getFromNode()
          Gets the node this edge leads from.
 SearchNode getToNode()
          Gets the node this edge leads to.
 void setDomainObject(Object domainObject)
          Sets the domain object associated to this search egde.
 void setFromNode(SearchNode fromNode)
          Sets the node this edge leads from.
 void setToNode(SearchNode toNode)
          Sets the node this edge leads to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultSearchEdge

public DefaultSearchEdge(Object domainObject,
                         SearchNode fromNode,
                         SearchNode toNode)
Creates a new edge between two nodes and associates this edge with the specified domain object.

Parameters:
domainObject - the domain object associated to this search egde
fromNode - the node this edge leads from
toNode - the node this edge leads to
Method Detail

getDomainObject

public Object getDomainObject()
Description copied from interface: SearchEdge
Gets the domain object associated to this search egde.

Specified by:
getDomainObject in interface SearchEdge
Returns:
the domain object associated to this search egde

getFromNode

public SearchNode getFromNode()
Description copied from interface: SearchEdge
Gets the node this edge leads from.

Specified by:
getFromNode in interface SearchEdge
Returns:
the SearchNode this edge leads from

getToNode

public SearchNode getToNode()
Description copied from interface: SearchEdge
Gets the node this edge leads to.

Specified by:
getToNode in interface SearchEdge
Returns:
the SearchNode this edge leads to

setDomainObject

public void setDomainObject(Object domainObject)
Description copied from interface: SearchEdge
Sets the domain object associated to this search egde.

Specified by:
setDomainObject in interface SearchEdge
Parameters:
domainObject - the domain object associated to this search egde

setFromNode

public void setFromNode(SearchNode fromNode)
Description copied from interface: SearchEdge
Sets the node this edge leads from.

Specified by:
setFromNode in interface SearchEdge
Parameters:
fromNode - the SearchNode this edge leads from

setToNode

public void setToNode(SearchNode toNode)
Description copied from interface: SearchEdge
Sets the node this edge leads to.

Specified by:
setToNode in interface SearchEdge
Parameters:
toNode - the SearchNode this edge leads to

toString

public String toString()
Overrides:
toString in class Object


Copyright 2003-2004 Henrik Heine, Oliver Zeigermann. All Rights Reserved.