|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.dts.client.association.Association
com.apelon.dts.client.association.Synonym
public class Synonym
A Synonym associates a term to a concept. It relates a term which is a synonym of a concept.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Constructor Summary | |
|---|---|
Synonym(AssociationType assocType,
Term term)
Constructs a synonym from the association type and synonym term. |
|
Synonym(AssociationType assocType,
Term term,
boolean localAddition)
Constructs a synonym from the association type and synonym term. |
|
Synonym(DTSConcept concept,
AssociationType assocType,
Term term,
boolean preferred)
Constructs a synonym from a concept, association type, and term. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this Synonym to the specified object. |
DTSConcept |
getConcept()
Get synonym's concept. |
Term |
getTerm()
Get synonym's term. |
int |
hashCode()
Returns a hashcode for this DTS concept. |
boolean |
isLocalAddition()
Indicates whether this synonym is a local addition, i.e. |
boolean |
isPreferred()
Indicates whether this synonym is the preferred term for the concept |
void |
setConcept(DTSConcept concept)
Set concept of synonym association. |
void |
setLocalAddition(boolean localAddition)
Sets the local addition indicator. |
void |
setPreferred(boolean newPreferred)
Set the preferred term indicator. |
String |
toString()
Returns name of synonym term. |
| Methods inherited from class com.apelon.dts.client.association.Association |
|---|
getAssociationType, getFromItem, getName, getToItem, getValue, setAssociationType, setFromItem, setToItem |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Synonym(DTSConcept concept,
AssociationType assocType,
Term term,
boolean preferred)
concept - Synonym's conceptassocType - Synonym's association type, i.e. the type of synonymterm - Synonym termpreferred - indicates this synonym is the preferred term
for this concept
public Synonym(AssociationType assocType,
Term term)
DTSConcept. When using this
constructor you will also need to issue setConcept(com.apelon.dts.client.concept.DTSConcept) before
using the object.
assocType - the association typeterm - the synonym term of the association
public Synonym(AssociationType assocType,
Term term,
boolean localAddition)
DTSConcept. When using this
constructor you will also need to issue setConcept(com.apelon.dts.client.concept.DTSConcept) before
using the object.
assocType - the association typeterm - the synonym term of the associationlocalAddition - indicator whether this is a local addition to
subscription content| Method Detail |
|---|
public void setConcept(DTSConcept concept)
concept - concept of synonym associationpublic DTSConcept getConcept()
public Term getTerm()
public boolean isPreferred()
public void setPreferred(boolean newPreferred)
newPreferred - true if this synonym is preferred, false otherwisepublic boolean isLocalAddition()
true if this synonym is a local addition to a
subscription concept; false if not.public void setLocalAddition(boolean localAddition)
localAddition - true if this synonym is a local
addition to a subscription concept;
false if not.public boolean equals(Object obj)
equals in class Associationobj - the object to compare this String
against.
true if the String are equal;
false otherwise.public int hashCode()
hashCode in class Associationpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||