com.apelon.dts.client.association
Class ConceptAssociation

java.lang.Object
  extended by com.apelon.dts.client.association.Association
      extended by com.apelon.dts.client.association.QualifiedAssociation
          extended by com.apelon.dts.client.association.ConceptAssociation
All Implemented Interfaces:
QualifiedObject

public class ConceptAssociation
extends QualifiedAssociation

ConceptAssociation relates a concept to another concept.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

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

Constructor Summary
ConceptAssociation(AssociationType assocType, DTSConcept toConcept)
          Constructs an association from the association type and "to" concept.
ConceptAssociation(DTSConcept fromConcept, AssociationType assocType)
          Constructs an association from the "from" concept and association type.
ConceptAssociation(DTSConcept fromConcept, AssociationType assocType, DTSConcept toConcept)
          Constructs a concept association from the "from" concept, association type, and "to" concept.
 
Method Summary
 DTSConcept getFromConcept()
          Get "from" concept of association.
 DTSConcept getToConcept()
          Get "to" concept of association.
 void setFromConcept(DTSConcept fromConcept)
          Set "from" concept of association.
 void setToConcept(DTSConcept toConcept)
          Set "to" concept of association.
 String toString()
          Returns description of concept association
 
Methods inherited from class com.apelon.dts.client.association.QualifiedAssociation
addQualifier, containsQualifier, deleteQualifier, getFetchedQualifiers, getToItem, isLocalAddition, setFromItem, setLocalAddition, setToItem
 
Methods inherited from class com.apelon.dts.client.association.Association
equals, getAssociationType, getFromItem, getName, getValue, hashCode, setAssociationType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConceptAssociation

public ConceptAssociation(DTSConcept fromConcept,
                          AssociationType assocType,
                          DTSConcept toConcept)
Constructs a concept association from the "from" concept, association type, and "to" concept.

Parameters:
fromConcept - the "from" concept of the association.
assocType - the association type
toConcept - the "to" concept of the association.

ConceptAssociation

public ConceptAssociation(AssociationType assocType,
                          DTSConcept toConcept)
Constructs an association from the association type and "to" concept. This would normally be used to construct an association that is part of a DTSConcept. When using this constructor you will also need to issue setFromConcept(com.apelon.dts.client.concept.DTSConcept) before using the object.

Parameters:
assocType - the association type
toConcept - the to concept of the association

ConceptAssociation

public ConceptAssociation(DTSConcept fromConcept,
                          AssociationType assocType)
Constructs an association from the "from" concept and association type. This would normally be used to construct an inverse association that is part of a DTSConcept. When using this constructor you will also need to issue setToConcept(com.apelon.dts.client.concept.DTSConcept) before using the object.

Parameters:
fromConcept - the from concept of the association
assocType - the association type
Method Detail

setFromConcept

public void setFromConcept(DTSConcept fromConcept)
Set "from" concept of association.

Parameters:
fromConcept - from concept of association

getFromConcept

public DTSConcept getFromConcept()
Get "from" concept of association.

Returns:
ConceptAssociation's "from" concept

setToConcept

public void setToConcept(DTSConcept toConcept)
Set "to" concept of association.

Parameters:
toConcept - to concept of association

getToConcept

public DTSConcept getToConcept()
Get "to" concept of association.

Returns:
ConceptAssociation's "to" concept

toString

public String toString()
Returns description of concept association

Overrides:
toString in class Object
Returns:
description.


Copyright © 2011. All Rights Reserved.