net.sf.quarrel.uml.impl
Class RelationshipImpl

java.lang.Object
  extended bynet.sf.quarrel.uml.impl.RelationshipImpl
All Implemented Interfaces:
Relationship

public class RelationshipImpl
extends java.lang.Object
implements Relationship

An implemention of the Relationship interface.


Constructor Summary
RelationshipImpl(RelationshipType type, Element client, Element supplier)
          Creates a new instance.
 
Method Summary
 Element getClient()
          Returns the dependent FileElement in the relationship (child).
 Element getSupplier()
          Returns the independent element in the relationship (parent).
 RelationshipType getType()
          Returns an object representing the type of this relationship.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipImpl

public RelationshipImpl(RelationshipType type,
                        Element client,
                        Element supplier)
Creates a new instance.

Parameters:
type - the type of the relationship.
client - the dependent element.
supplier - the independent element.
Method Detail

getType

public RelationshipType getType()
Returns an object representing the type of this relationship.

Specified by:
getType in interface Relationship
Returns:
the RelationshipType object for this relationship

getSupplier

public Element getSupplier()
Returns the independent element in the relationship (parent).

Specified by:
getSupplier in interface Relationship
Returns:
the supplier, or independent, element

getClient

public Element getClient()
Returns the dependent FileElement in the relationship (child).

Specified by:
getClient in interface Relationship
Returns:
the client, or dependent, element


Copyright © 2006-2007. All Rights Reserved.