org.mmbase.bridge
Interface Relation

All Superinterfaces:
Node
All Known Implementing Classes:
BasicRelation

public interface Relation
extends Node

A relation within the cloud.

Author:
Rob Vermeulen, Pierre van Rooden

Method Summary
 Node getDestination()
          Retrieves the destination of the relation
 RelationManager getRelationManager()
          Retrieves the RelationManager used
 Node getSource()
          Retrieves the source of the relation
 void setDestination(Node node)
          set the destination of the relation
 void setSource(Node node)
          set the source of the relation
 
Methods inherited from interface org.mmbase.bridge.Node
cancel, commit, countRelatedNodes, countRelations, countRelations, createAlias, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getCloud, getContext, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNodeManager, getNodeValue, getNumber, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getStringValue, getValue, hasRelations, mayChangeContext, mayDelete, mayLink, mayWrite, setByteValue, setContext, setDoubleValue, setFloatValue, setIntValue, setLongValue, setStringValue, setValue, toString
 

Method Detail

getSource

public Node getSource()
Retrieves the source of the relation
Returns:
the source node

getDestination

public Node getDestination()
Retrieves the destination of the relation
Returns:
the destination node

setSource

public void setSource(Node node)
set the source of the relation
Parameters:
the - source node

setDestination

public void setDestination(Node node)
set the destination of the relation
Parameters:
the - destination node

getRelationManager

public RelationManager getRelationManager()
Retrieves the RelationManager used
Returns:
the RelationManager


MMBase 2001