|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.association.Association com.apelon.dts.client.association.QualifiedAssociation
public abstract class QualifiedAssociation
This class provides methods common to Association
s which
have qualifiers: ConceptAssociation
s and
TermAssociation
s.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
Constructor Summary | |
---|---|
|
QualifiedAssociation()
|
protected |
QualifiedAssociation(AssociationType assocType,
DTSObject toItem)
Constructs an association from the association type and "to" item. |
protected |
QualifiedAssociation(DTSObject fromItem,
AssociationType assocType)
Constructs an association from the "from" item and association type. |
protected |
QualifiedAssociation(DTSObject fromItem,
AssociationType assocType,
DTSObject toItem)
Constructs an association from the "from" item, association type, and "to" item. |
Method Summary | |
---|---|
boolean |
addQualifier(DTSQualifier qualifier)
Adds the specified element as qualifier for this association. |
boolean |
containsQualifier(DTSQualifier qualifier)
Tests if this association already has the specified qualifier. |
boolean |
deleteQualifier(DTSQualifier qualifier)
Deletes the specified element as qualifier for this association. |
DTSQualifier[] |
getFetchedQualifiers()
Returns array of qualifiers that have been retrieved for this association. |
DTSObject |
getToItem()
Get "to" item of qualified association. |
boolean |
isLocalAddition()
Indicates if this association is a local addition to subscription content, i.e. |
void |
setFromItem(DTSObject fromItem)
Set "from" item of qualified association. |
void |
setLocalAddition(boolean localAddition)
Sets the local addition indicator. |
void |
setToItem(DTSObject toItem)
Set "to" item of qualified association. |
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 |
---|
public QualifiedAssociation()
protected QualifiedAssociation(DTSObject fromItem, AssociationType assocType, DTSObject toItem)
fromItem
- the from item of the associationassocType
- the association typetoItem
- the to item of the associationprotected QualifiedAssociation(AssociationType assocType, DTSObject toItem)
DTSConcept
or
Term
. When using this constructor you
will also need to issue setFromItem(com.apelon.dts.client.common.DTSObject)
before using the object.
assocType
- the association typetoItem
- the to item of the associationprotected QualifiedAssociation(DTSObject fromItem, AssociationType assocType)
DTSConcept
or
Term
. When using this constructor you
will also need to issue setToItem(com.apelon.dts.client.common.DTSObject)
before using the object.
fromItem
- the from item of the associationassocType
- the association typeMethod Detail |
---|
public DTSQualifier[] getFetchedQualifiers()
getFetchedQualifiers
in interface QualifiedObject
DTSQualifier
s.public boolean addQualifier(DTSQualifier qualifier)
addQualifier
in interface QualifiedObject
qualifier
- DTSQualifier to add
false
if the association already had the
qualifier; true
if the qualifier was addedpublic boolean containsQualifier(DTSQualifier qualifier)
containsQualifier
in interface QualifiedObject
qualifier
- the DTSQualifier
to test
true
if this association contains the
qualifier argument; otherwise false
public boolean deleteQualifier(DTSQualifier qualifier)
deleteQualifier
in interface QualifiedObject
qualifier
- DTSQualifier to be removed
true
if removed successfully; otherwise
false
public void setFromItem(DTSObject fromItem)
setFromItem
in class Association
fromItem
- from item of associationpublic void setToItem(DTSObject toItem)
setToItem
in class Association
toItem
- to item of associationpublic DTSObject getToItem()
getToItem
in class Association
public boolean isLocalAddition()
true
if this association is a local addition to
subscription content; false
if not.public void setLocalAddition(boolean localAddition)
localAddition
- true
if this association is a
local addition to subscription content;
false
if not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |