org.openware.job.generator.metadata
Class MDMEndPoint

java.lang.Object
  |
  +--org.openware.job.generator.metadata.MetaElement
        |
        +--org.openware.job.generator.metadata.MDMEndPoint
All Implemented Interfaces:
java.io.Serializable

public class MDMEndPoint
extends MetaElement

An endpoint is one end of a relationship. Each relationship is made up of 2 EndPoints. Because each relationship is between 2 classes, each EndPoint contains a class.

Version:
$Revision: 1.2 $ $Date: 2001/07/09 04:21:34 $
Author:
Vincent Sheffer
See Also:
Serialized Form

Constructor Summary
MDMEndPoint(java.lang.String name)
           
 
Method Summary
 int getCardinality()
          Get the cardinality for this EndPoint.
 MDMClass getContainedClass()
          Get the class contained by this EndPoint object.
 java.lang.String getName()
          Get the name of the endpoint.
 MDMEndPoint getOtherEnd()
          Get the EndPoint object at the other end of the relationship.
 MDMRelationship getRelationship()
          Get the MDMRelationship object that this EndPoint is a part of.
 void setCardinality(java.lang.String cardStr)
          Set the cardinality for this EndPoint.
 void setContainedClass(MDMClass theClass)
          Set the class contained by this EndPoint object.
 void setRelationship(MDMRelationship relation)
          Set the MDMRelationship object that this EndPoint is a part of.
 
Methods inherited from class org.openware.job.generator.metadata.MetaElement
addDocumentationLine, getDocumentationLines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDMEndPoint

public MDMEndPoint(java.lang.String name)
Method Detail

setContainedClass

public void setContainedClass(MDMClass theClass)
Set the class contained by this EndPoint object.
Parameters:
theClass - The contained class.

getName

public java.lang.String getName()
Get the name of the endpoint.
Returns:
The name of the endpoint.

getContainedClass

public MDMClass getContainedClass()
Get the class contained by this EndPoint object.
Returns:
The contained class.

getOtherEnd

public MDMEndPoint getOtherEnd()
Get the EndPoint object at the other end of the relationship.
Returns:
The EndPoint opposite this one.

getCardinality

public int getCardinality()
Get the cardinality for this EndPoint. The following are valid values:
Returns:
An int value representing the cardinality for this EndPoint

setCardinality

public void setCardinality(java.lang.String cardStr)
Set the cardinality for this EndPoint. The following are valid values:
Parameters:
cardStr - An String value representing the cardinality for this EndPoint

getRelationship

public MDMRelationship getRelationship()
Get the MDMRelationship object that this EndPoint is a part of.
Returns:
The MDMRelationship object.

setRelationship

public void setRelationship(MDMRelationship relation)
Set the MDMRelationship object that this EndPoint is a part of.
Parameters:
relation - The MDMRelationship object.


Copyright © 2000,2001 Openware. All Rights Reserved.