com.arsdigita.persistence.metadata
Class Association

java.lang.Object
  extended bycom.arsdigita.persistence.metadata.Element
      extended bycom.arsdigita.persistence.metadata.ModelElement
          extended bycom.arsdigita.persistence.metadata.Association

public class Association
extends ModelElement

The Association class is used to link together the properties of two object types. When such a link is made there can be data stored along with each link.

Version:
$Revision: #15 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Method Summary
 Property getAssociatedProperty(Property prop)
          Gets the associated property.
 CompoundType getLinkType()
          Gets the DataType to be used as a link in this Association.
 Property getRoleOne()
          Gets the first role property.
 Property getRoleTwo()
          Gets the second role property.
 
Methods inherited from class com.arsdigita.persistence.metadata.ModelElement
getModel
 
Methods inherited from class com.arsdigita.persistence.metadata.Element
equals, getColumnNumber, getFilename, getLineNumber, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

getLinkType

public CompoundType getLinkType()
Gets the DataType to be used as a link in this Association.

Returns:
The DataType to be used as a link.

getAssociatedProperty

public Property getAssociatedProperty(Property prop)
Gets the associated property.


getRoleOne

public Property getRoleOne()
Gets the first role property.

Returns:
the first role property

getRoleTwo

public Property getRoleTwo()
Gets the second role property.

Returns:
the second role property


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC