|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.dts.client.common.DTSObject
com.apelon.dts.client.attribute.PropertiedObject
com.apelon.dts.client.concept.DTSConcept
public class DTSConcept
A DTS concept is the basic unit of information in the terminology knowledgebasebase. The knowledgebase consists of a collection of DTS concepts. A DTS concept may either be an Ontylog concept or a thesaurus concept. The DTSConcept class encompasses traits common to both types of concepts.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Constructor Summary | |
|---|---|
DTSConcept(String name,
int namespaceId)
Constructs a concept and assigns the code and id. |
|
DTSConcept(String name,
int id,
String code,
int namespaceId)
Constructs a concept which has a name, code, ID, and namespace ID. |
|
DTSConcept(String name,
String code,
int namespaceId)
Constructs a concept and assigns the id. |
|
| Method Summary | |
|---|---|
boolean |
addConceptAssociation(ConceptAssociation conceptAssoc)
Adds the specified element as concept association for this concept. |
boolean |
addInverseConceptAssociation(ConceptAssociation invConceptAssoc)
Adds the specified element as inverse concept association for this concept. |
boolean |
addSynonym(Synonym syn)
Adds the specified element as synonym for this concept. |
boolean |
containsConceptAssociation(ConceptAssociation conceptAssoc)
Tests if this concept already has the specified concept association. |
boolean |
containsInverseConceptAssociation(ConceptAssociation invConceptAssoc)
Tests if this concept already has the specified inverse concept association. |
boolean |
containsSynonym(Synonym syn)
Tests if this concept already has the specified synonym. |
boolean |
deleteConceptAssociation(ConceptAssociation conceptAssoc)
Deletes the specified element as concept association for this concept. |
boolean |
deleteInverseConceptAssociation(ConceptAssociation invConceptAssoc)
Deletes the specified element as inverse concept association for this concept. |
boolean |
deleteSynonym(Synonym syn)
Deletes the specified element as synonym for this concept. |
boolean |
equals(Object obj)
Compares this DTSConcept to the specified object. |
ConceptAssociation[] |
getFetchedConceptAssociations()
Gets the concept associations which have been fetched for this concept. |
ConceptAssociation[] |
getFetchedInverseConceptAssociations()
Gets the inverse concept associations which have been fetched for this concept. |
Synonym |
getFetchedPreferredTerm()
Gets the synonym association which is the preferred term for this concept. |
Synonym[] |
getFetchedSynonyms()
Gets the synonym terms which have been fetched for this concept. |
MatchItemType |
getMatchItemType()
Gets the match item type, i.e. |
String |
getMatchString()
Gets the string that was matched. |
int |
getNumberOfSpecifiedConceptAssociations()
Get the number of concept associations that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
DTSConcept. |
int |
getNumberOfSpecifiedInverseConceptAssociations()
Get the number of inverse concept associations that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain
this DTSConcept. |
int |
getNumberOfSpecifiedSynonyms()
Get the number of synonyms that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
DTSConcept. |
void |
setNumberOfSpecifiedConceptAssociations(int count)
Set the number of concept associations that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
DTSConcept. |
void |
setNumberOfSpecifiedInverseConceptAssociations(int count)
Set the number of inverse concept associations that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain
this DTSConcept. |
void |
setNumberOfSpecifiedSynonyms(int count)
Set the number of synonyms that are available of the types specified in the ConceptAttributeSetDescriptor used to obtain this
DTSConcept. |
| Methods inherited from class com.apelon.dts.client.attribute.PropertiedObject |
|---|
addProperty, containsProperty, deleteProperty, getFetchedProperties, getNumberOfSpecifiedProperties, getProperties, setProperties |
| Methods inherited from class com.apelon.dts.client.common.DTSObject |
|---|
getCode, getId, getName, getNamespaceId, hashCode, setCode, setId, setName, setNamespaceId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DTSConcept(String name,
int id,
String code,
int namespaceId)
name - name of the termid - ID of the termcode - code of the termnamespaceId - ID of the term's namespace
public DTSConcept(String name,
int namespaceId)
name - name of the termnamespaceId - ID of the term's namespaceBaseLocalConceptQuery.addConcept(DTSConcept)
public DTSConcept(String name,
String code,
int namespaceId)
name - name of the termnamespaceId - ID of the term's namespaceBaseLocalConceptQuery.addConcept(DTSConcept)| Method Detail |
|---|
public String getMatchString()
getMatchString in interface MatchItempublic MatchItemType getMatchItemType()
getMatchItemType in interface MatchItempublic ConceptAssociation[] getFetchedConceptAssociations()
QualifiedConceptAssociation.
public int getNumberOfSpecifiedConceptAssociations()
ConceptAttributeSetDescriptor used to obtain this
DTSConcept.
public void setNumberOfSpecifiedConceptAssociations(int count)
ConceptAttributeSetDescriptor used to obtain this
DTSConcept.
count - number of concept associations of the types
specified in ConceptAttributeSetDescriptorpublic ConceptAssociation[] getFetchedInverseConceptAssociations()
QualifiedConceptAssociation.
public int getNumberOfSpecifiedInverseConceptAssociations()
ConceptAttributeSetDescriptor used to obtain
this DTSConcept.
public void setNumberOfSpecifiedInverseConceptAssociations(int count)
ConceptAttributeSetDescriptor used to obtain
this DTSConcept.
count - number of inverse concept associations of the
types specified in ConceptAttributeSetDescriptorpublic Synonym[] getFetchedSynonyms()
QualifiedTerm
within the Synonym object.
public int getNumberOfSpecifiedSynonyms()
ConceptAttributeSetDescriptor used to obtain this
DTSConcept.
public void setNumberOfSpecifiedSynonyms(int count)
ConceptAttributeSetDescriptor used to obtain this
DTSConcept.
count - number of synonyms of the types specified in
ConceptAttributeSetDescriptorpublic Synonym getFetchedPreferredTerm()
Synonym.isPreferred()).
This should be available if a ConceptAttributeSetDescriptor
specified that synonyms were to be fetched.
public boolean addConceptAssociation(ConceptAssociation conceptAssoc)
conceptAssoc - ConceptAssociation to add
false if the concept already had the concept
association; true if the concept association was
addedpublic boolean containsConceptAssociation(ConceptAssociation conceptAssoc)
conceptAssoc - the ConceptAssociation to test
true if this concept contains the
concept association argument; otherwise falsepublic boolean deleteConceptAssociation(ConceptAssociation conceptAssoc)
conceptAssoc - ConceptAssociation to delete
true if removed successfully; otherwise
falsepublic boolean addSynonym(Synonym syn)
syn - Synonym to add
false if the concept already had the synonym or
the synonym was null;
true if the synonym was addedpublic boolean containsSynonym(Synonym syn)
syn - the Synonym to test
true if this concept contains the
synonym argument; otherwise falsepublic boolean deleteSynonym(Synonym syn)
syn - Synonym to delete
true if removed successfully; otherwise
falsepublic boolean addInverseConceptAssociation(ConceptAssociation invConceptAssoc)
invConceptAssoc - inverse ConceptAssociation to add
false if the concept already had the inverse concept
association; true if the inverse concept association
was addedpublic boolean containsInverseConceptAssociation(ConceptAssociation invConceptAssoc)
invConceptAssoc - the inverse ConceptAssociation
to test
true if this concept contains the inverse concept
association argument; otherwise falsepublic boolean deleteInverseConceptAssociation(ConceptAssociation invConceptAssoc)
invConceptAssoc - inverse ConceptAssociation to delete
true if removed successfully; otherwise
falsepublic boolean equals(Object obj)
equals in class DTSObjectobj - the object to compare this String
against.
true if the object is equal to the DTSConcept;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||