com.apelon.dts.client.association
Class Association

java.lang.Object
  extended by com.apelon.dts.client.association.Association
Direct Known Subclasses:
QualifiedAssociation, Synonym

public abstract class Association
extends Object

An association relates a concept or term to another concept or term. Associations fall into three main categories: concept associations, term assocations, and synonyms which are concept-term associations.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

Since:
DTS 3.0.0
Version:
DTS 3.0.0
Author:
Apelon, Inc.

Constructor Summary
  Association()
           
protected Association(AssociationType assocType, DTSObject toItem)
          Constructs an association from the association type and "to" item.
protected Association(DTSObject fromItem, AssociationType assocType)
          Constructs an association from the "from" item and association type.
protected Association(DTSObject fromItem, AssociationType assocType, DTSObject toItem)
          Constructs an association from the "from" item, association type, and "to" item.
 
Method Summary
 boolean equals(Object obj)
          Compares this association to the specified object.
 AssociationType getAssociationType()
          Gets type of association.
 DTSObject getFromItem()
          Get "from" item of association.
 String getName()
          Gets the name of the association type of this Association.
protected  DTSObject getToItem()
          Get "to" item of association.
 String getValue()
          Gets the String value of this Association.
 int hashCode()
          Returns a hashcode for this association.
 void setAssociationType(AssociationType type)
          Set type of association
protected  void setFromItem(DTSObject fromItem)
          Set "from" item of association.
protected  void setToItem(DTSObject toItem)
          Set "to" item of association.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Association

public Association()

Association

protected Association(DTSObject fromItem,
                      AssociationType assocType,
                      DTSObject toItem)
Constructs an association from the "from" item, association type, and "to" item.

Parameters:
fromItem - the from item of the association
assocType - the association type
toItem - the to item of the association

Association

protected Association(AssociationType assocType,
                      DTSObject toItem)
Constructs an association from the association type and "to" item. This would normally be used to construct an association that is part of a DTSConcept or Term. When using this constructor you will also need to issue setFromItem(com.apelon.dts.client.common.DTSObject) before using the object.

Parameters:
assocType - the association type
toItem - the to item of the association

Association

protected Association(DTSObject fromItem,
                      AssociationType assocType)
Constructs an association from the "from" item and association type. This would normally be used to construct an inverse association that is part of a DTSConcept or Term. When using this constructor you will also need to issue setToItem(com.apelon.dts.client.common.DTSObject) before using the object.

Parameters:
fromItem - the from item of the association
assocType - the association type
Method Detail

setFromItem

protected void setFromItem(DTSObject fromItem)
Set "from" item of association.

Parameters:
fromItem - from item of association

getFromItem

public DTSObject getFromItem()
Get "from" item of association.

Returns:
from item.

getAssociationType

public AssociationType getAssociationType()
Gets type of association.

Returns:
association type

setAssociationType

public void setAssociationType(AssociationType type)
Set type of association

Parameters:
type - the type of association

getName

public String getName()
Gets the name of the association type of this Association.

Returns:
the name of this Association.

setToItem

protected void setToItem(DTSObject toItem)
Set "to" item of association.

Parameters:
toItem - to item of association

getToItem

protected DTSObject getToItem()
Get "to" item of association.

Returns:
from item.

getValue

public String getValue()
Gets the String value of this Association.

Returns:
the value of this Association.

equals

public boolean equals(Object obj)
Compares this association to the specified object.

Overrides:
equals in class Object
Parameters:
obj - the object to compare this String against.
Returns:
true if the String are equal; false otherwise.

hashCode

public int hashCode()
Returns a hashcode for this association.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.


Copyright © 2011. All Rights Reserved.