org.molwind.model
Class PartOf

java.lang.Object
  extended by org.molwind.model.BaseRelationship
      extended by org.molwind.model.PartOf
All Implemented Interfaces:
PartialMatch, Relationship

public class PartOf
extends BaseRelationship

PartOf relationship type.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
PartOf(WorldEntity left, WorldEntity right)
          Creates a new partof relationship object.
 
Method Summary
 boolean contains(WorldEntity part)
          Tests whether the given entity has a part of relationship.
 
Methods inherited from class org.molwind.model.BaseRelationship
equals, getLeft, getRight, hashCode, isTransitive, left, matches, right, setLeft, setRight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartOf

public PartOf(WorldEntity left,
              WorldEntity right)
Creates a new partof relationship object.

Parameters:
left - left argument world entity
right - right argument world entity
Method Detail

contains

public boolean contains(WorldEntity part)
Tests whether the given entity has a part of relationship.

Parameters:
part - the given entity
Returns:
true if relationship type is transitive, otherwise false


Copyright © 2008-2010. All Rights Reserved.