com.apelon.dts.client.association
Class TermAssociation

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.TermAssociation
All Implemented Interfaces:
QualifiedObject

public class TermAssociation
extends QualifiedAssociation

TermAssociation relates a term to another term.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

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

Constructor Summary
TermAssociation()
           
TermAssociation(AssociationType assocType, Term toTerm)
          Constructs an association from the association type and "to" term.
TermAssociation(Term fromTerm, AssociationType assocType)
          Constructs an association from the "from" term and association type.
TermAssociation(Term fromTerm, AssociationType assocType, Term toTerm)
          Constructs an association from the "from" term, association type, and "to" term.
 
Method Summary
 Term getFromTerm()
          Get "from" term of association.
 Term getToTerm()
          Get "to" term of association.
 void setFromTerm(Term fromTerm)
          Set "from" term of association.
 void setToTerm(Term toTerm)
          Set "to" term of 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, toString, wait, wait, wait
 

Constructor Detail

TermAssociation

public TermAssociation()

TermAssociation

public TermAssociation(Term fromTerm,
                       AssociationType assocType,
                       Term toTerm)
Constructs an association from the "from" term, association type, and "to" term.

Parameters:
fromTerm - the "from" term of the association.
assocType - the association type.
toTerm - the "to" term of the association.

TermAssociation

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

Parameters:
assocType - the association type
toTerm - the to term of the association

TermAssociation

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

Parameters:
fromTerm - the from term of the association
assocType - the association type
Method Detail

setFromTerm

public void setFromTerm(Term fromTerm)
Set "from" term of association.

Parameters:
fromTerm - from term of association

getFromTerm

public Term getFromTerm()
Get "from" term of association.

Returns:
TermAssociation's "from" term

setToTerm

public void setToTerm(Term toTerm)
Set "to" term of association.

Parameters:
toTerm - to term of association

getToTerm

public Term getToTerm()
Get "to" term of association.

Returns:
TermAssociation's "to" term


Copyright © 2011. All Rights Reserved.