org.mmbase.bridge
Interface Relation

All Superinterfaces:
Comparable<Node>, Node
All Known Implementing Classes:
BasicRelation, MockRelation

public interface Relation
extends Node

A relation within the cloud.

Version:
$Id: Relation.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Rob Vermeulen, Pierre van Rooden

Field Summary
 
Fields inherited from interface org.mmbase.bridge.Node
CLOUD_COMMITNODE_KEY
 
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, getDecimalValue, 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, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getSource

Node getSource()
Retrieves the source of the relation

Returns:
the source node

getDestination

Node getDestination()
Retrieves the destination of the relation

Returns:
the destination node

setSource

void setSource(Node node)
set the source of the relation

Parameters:
node - the source node

setDestination

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

Parameters:
node - the destination node

getRelationManager

RelationManager getRelationManager()
Retrieves the RelationManager used

Returns:
the RelationManager


MMBase 2.0-SNAPSHOT - null