|
||||||||||
| 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.term.Term
public class Term
DTS representation of a term, which can be associated with or independent of any DTSConcept.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Constructor Summary | |
|---|---|
Term()
|
|
Term(String name,
int namespaceId)
Contructs a term which has a name, and namespace ID: the code and id will be generated when this Term is added to the server. |
|
Term(String name,
int id,
String code,
int namespaceId)
Contructs a term which has a name, code, ID, and namespace ID. |
|
| Method Summary | |
|---|---|
void |
addInverseTermAssociation(TermAssociation inverseTermAssociation)
Adds the specified element as an inverse term association for this term. |
void |
addSynonym(Synonym synonym)
Adds the specified element as synonym which this term refers to. |
void |
addTermAssociation(TermAssociation termAssociation)
Adds the specified element as a term association for this term. |
void |
deleteInverseTermAssociation(TermAssociation inverseTermAssociation)
Deletes the specified element as an inverse term association for this term. |
void |
deleteSynonym(Synonym synonym)
Deletes the specified element as synonym which this term refers to. |
void |
deleteTermAssociation(TermAssociation termAssociation)
Deletes the specified element as a term association for this term. |
boolean |
equals(Object obj)
Compares this term to the specified object. |
TermAssociation[] |
getFetchedInverseTermAssociations()
Gets the inverse term associations which have been fetched for this term. |
Synonym[] |
getFetchedSynonyms()
Gets the syonyms which have been fetched for this term. |
TermAssociation[] |
getFetchedTermAssociations()
Gets the term associations which have been fetched for this term. |
TermAssociation[] |
getInverseTermAssociations()
|
MatchItemType |
getMatchItemType()
Gets the match item type, i.e. |
String |
getMatchString()
Gets the string that was matched. |
int |
getNumberOfSpecifiedInverseTermAssociations()
Get the number of inverse term associations that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
int |
getNumberOfSpecifiedSynonyms()
Get the number of synonyms that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
int |
getNumberOfSpecifiedTermAssociations()
Get the number of term associations that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
Synonym[] |
getSynonyms()
|
TermAssociation[] |
getTermAssociations()
|
void |
setInverseTermAssociations(TermAssociation[] inverseTermAssoc)
|
void |
setName(String newName)
Sets a new name for this term. |
void |
setNumberOfSpecifiedInverseTermAssociations(int count)
Set the number of inverse term associations that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
void |
setNumberOfSpecifiedSynonyms(int count)
Set the number of synonyms that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
void |
setNumberOfSpecifiedTermAssociations(int count)
Set the number of term associations that are available of the types specified in the TermAttributeSetDescriptor used to obtain this
Term. |
void |
setSynonyms(Synonym[] syns)
|
void |
setTermAssociations(TermAssociation[] termAssoc)
|
| 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, setNamespaceId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Term()
public Term(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 Term(String name,
int namespaceId)
Term is added to the server.
name - name of the termnamespaceId - ID of the term's namespace| Method Detail |
|---|
public String getMatchString()
getMatchString in interface MatchItempublic MatchItemType getMatchItemType()
getMatchItemType in interface MatchItempublic void addTermAssociation(TermAssociation termAssociation)
termAssociation - the term association to be addedpublic void deleteTermAssociation(TermAssociation termAssociation)
termAssociation - the term association to be deletedpublic void addInverseTermAssociation(TermAssociation inverseTermAssociation)
inverseTermAssociation - the inverse term association to be addedpublic void deleteInverseTermAssociation(TermAssociation inverseTermAssociation)
inverseTermAssociation - the inverse term association to be deletedpublic void addSynonym(Synonym synonym)
synonym - the synonym to be addedpublic void deleteSynonym(Synonym synonym)
synonym - the synonym to be deletedpublic void setName(String newName)
setName in class DTSObjectnewName - new name for the termpublic TermAssociation[] getFetchedTermAssociations()
QualifiedAssociation.getFetchedQualifiers()
method.
public TermAssociation[] getTermAssociations()
public void setTermAssociations(TermAssociation[] termAssoc)
public int getNumberOfSpecifiedTermAssociations()
TermAttributeSetDescriptor used to obtain this
Term.
public void setNumberOfSpecifiedTermAssociations(int count)
TermAttributeSetDescriptor used to obtain this
Term.
count - number of term associations of the types
specified in ConceptAttributeSetDescriptorpublic TermAssociation[] getFetchedInverseTermAssociations()
QualifiedAssociation.getFetchedQualifiers()
method.
public TermAssociation[] getInverseTermAssociations()
public void setInverseTermAssociations(TermAssociation[] inverseTermAssoc)
public int getNumberOfSpecifiedInverseTermAssociations()
TermAttributeSetDescriptor used to obtain this
Term.
public void setNumberOfSpecifiedInverseTermAssociations(int count)
TermAttributeSetDescriptor used to obtain this
Term.
count - number of inverse term associations of the
types specified in TermAttributeSetDescriptorpublic Synonym[] getFetchedSynonyms()
public Synonym[] getSynonyms()
public void setSynonyms(Synonym[] syns)
public int getNumberOfSpecifiedSynonyms()
TermAttributeSetDescriptor used to obtain this
Term.
public void setNumberOfSpecifiedSynonyms(int count)
TermAttributeSetDescriptor used to obtain this
Term.
count - number of syonyms of the
types specified in TermAttributeSetDescriptorpublic boolean equals(Object obj)
equals in class DTSObjectobj - the object to compare this String
against.
true if the object is equal to the Term;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||