org.mmbase.bridge.mock
Class MockRelation

java.lang.Object
  extended by org.mmbase.bridge.util.AbstractNode
      extended by org.mmbase.bridge.util.MapNode<Object>
          extended by org.mmbase.bridge.mock.MockNode
              extended by org.mmbase.bridge.mock.MockRelation
All Implemented Interfaces:
Serializable, Comparable<Node>, Node, Relation

public class MockRelation
extends MockNode
implements Relation

Since:
MMBase-2.0
Version:
$Id: MockRelation.java 42556 2010-06-15 09:17:05Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.bridge.mock.MockNode
cloud
 
Fields inherited from class org.mmbase.bridge.util.MapNode
nodeManager, originals, sizes, values, wrapper
 
Fields inherited from interface org.mmbase.bridge.Node
CLOUD_COMMITNODE_KEY
 
Constructor Summary
MockRelation(MockCloudContext.NodeDescription nd, MockCloud cloud, boolean isNew)
           
 
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 n)
          set the destination of the relation
 void setSource(Node n)
          set the source of the relation
 
Methods inherited from class org.mmbase.bridge.mock.MockNode
commit, createAlias, delete, deleteAlias, getAliases, getContext, getPossibleContexts, getValueWithoutProcess, isNew, setContext, toString
 
Methods inherited from class org.mmbase.bridge.util.MapNode
cancel, countRelatedNodes, countRelatedNodes, createRelation, createVirtualNodeManager, deleteRelations, edit, getCloud, getNodeManager, getNumber, getRelatedNodes, getRelations, getRelations, getSize, hasRelations, isChanged, isChanged, isNull, mayChangeContext, mayWrite, setNodeManager, setSize, setValueWithoutChecks, setValueWithoutProcess
 
Methods inherited from class org.mmbase.bridge.util.AbstractNode
checkWrite, compareTo, countRelations, countRelations, createFunctionValue, createParameters, delete, deleteRelations, equals, getBooleanValue, getByteValue, getChanged, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionMap, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeFunction, getNodeValue, getObjectValue, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, isNodeManager, isRelation, isRelationManager, mayDelete, processNull, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toNodeNumber, toRelation, toRelationManager, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

MockRelation

MockRelation(MockCloudContext.NodeDescription nd,
             MockCloud cloud,
             boolean isNew)
Method Detail

getRelationManager

public RelationManager getRelationManager()
Description copied from interface: Relation
Retrieves the RelationManager used

Specified by:
getRelationManager in interface Relation
Returns:
the RelationManager

setSource

public void setSource(Node n)
Description copied from interface: Relation
set the source of the relation

Specified by:
setSource in interface Relation
Parameters:
n - the source node

setDestination

public void setDestination(Node n)
Description copied from interface: Relation
set the destination of the relation

Specified by:
setDestination in interface Relation
Parameters:
n - the destination node

getSource

public Node getSource()
Description copied from interface: Relation
Retrieves the source of the relation

Specified by:
getSource in interface Relation
Returns:
the source node

getDestination

public Node getDestination()
Description copied from interface: Relation
Retrieves the destination of the relation

Specified by:
getDestination in interface Relation
Returns:
the destination node


MMBase 2.0-SNAPSHOT - null