org.mmbase.bridge
Interface Relation

All Superinterfaces:
Comparable, Node
All Known Implementing Classes:
BasicRelation

public interface Relation
extends Node

A relation within the cloud.

Version:
$Id: Relation.java,v 1.4 2004/06/08 08:45:17 michiel Exp $
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, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getChanged, getCloud, getContext, getDateValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValue, getValueWithoutProcess, getXMLValue, getXMLValue, hasRelations, isChanged, isChanged, isNew, isNodeManager, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

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:
node - the source node

setDestination

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

Parameters:
node - the destination node

getRelationManager

public RelationManager getRelationManager()
Retrieves the RelationManager used

Returns:
the RelationManager


MMBase build 1.8.1.20060716