|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.autonomy.aci.businessobjects.AciBusinessObject
com.autonomy.aci.businessobjects.TermsNWeights
Holds details of the terms and weights assosciated with a document, category, agent or profile.
| Field Summary | |
static java.lang.String |
TERM_AND_WEIGHT_SEPARATOR
|
static java.lang.String |
TERMS_AND_WEIGHTS_SEPARATOR
|
| Constructor Summary | |
TermsNWeights()
Construct a TermsNWeights object with no term information set. |
|
| Method Summary | |
void |
clearTermsNWeights()
Remove all terms from the list of terms. |
java.lang.Object |
clone()
Makes a deep copy of this object. |
java.util.Set |
getTerms()
Get the names of all the terms set. |
java.util.HashMap |
getTermsNWeights()
Get a mapping of all the terms and weights that this object encapsulates. |
int |
getTermWeighting(java.lang.String sTerm)
Reads the weighting assosciated with a given term. |
void |
removeTermNWeight(java.lang.String sTerm)
Remove a term from the list of terms. |
void |
setTermNWeight(java.lang.String sTerm,
int nWeight)
Set the value for a term. |
void |
setTermsNWeights(java.util.Map termsNWeightsMap)
Set all the terms and weights that this object encapsulates. |
java.lang.String |
toString()
Writes the terms and weights information as a string in IDOL format ([Term1]Weight1~[Term2]Weight2~.....). |
| Methods inherited from class com.autonomy.aci.businessobjects.AciBusinessObject |
getUID, setUID |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String TERMS_AND_WEIGHTS_SEPARATOR
public static final java.lang.String TERM_AND_WEIGHT_SEPARATOR
| Constructor Detail |
public TermsNWeights()
TermsNWeights object with no term information set.
| Method Detail |
public void setTermsNWeights(java.util.Map termsNWeightsMap)
termsNWeightsMap - a mapping between all the terms and their weights.
Both the keys (term names) and values (term weights) of the Map should
be Strings.
public void setTermNWeight(java.lang.String sTerm,
int nWeight)
sTerm - the name of the term.nWeight - the weighting of the term.public void removeTermNWeight(java.lang.String sTerm)
sTerm - the name of the term.public void clearTermsNWeights()
public java.util.Set getTerms()
Set of Strings giving the names of all the terms set.public java.util.HashMap getTermsNWeights()
Map are Strings.public int getTermWeighting(java.lang.String sTerm)
sTerm - the term.public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||