|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iphrase.runtime.query.Feature | +--com.iphrase.runtime.query.constraint.Constraint | +--com.iphrase.runtime.query.constraint.Mentions
Represent a concept constraint against indexed text
feature types.
Clients are not allowed to create Mentions constraints directly - the engine
creates them as a result of meaning resolution of query text terms. Therefore
they can be serialized and deserialized but there is no public ctor.
Inner classes inherited from class com.iphrase.runtime.query.constraint.Constraint |
Constraint.Flags |
Method Summary | |
java.lang.String |
getConstraintSubType()
Determine subType representation of the non-range inequality constraints |
java.lang.String[] |
getLabels()
Get the text labels associated with this Mentions constraint. |
java.lang.String |
getOperatorByTermIndex(int termIndex,
java.lang.String andStr,
java.lang.String orStr)
Returnes andStr or orStr depends on the boolean operator used for termIndex search |
int |
getRemoveIndex(java.lang.String term)
|
java.lang.String[] |
getTerms()
Get the text terms associated with this Mentions constraint. |
java.lang.Object |
getValue()
Get the value associated with this constraint. |
boolean |
matches(Constraint c)
Determine whether this Constraint matches another. |
static Constraint |
newInstance(java.lang.String state)
Attempt to create a new Mentions constraint from a OneStep serialization String . |
void |
setValue(java.lang.String value)
Set the value associated with this constraint. |
java.lang.String |
toString()
Serialize this constraint using the OneStep serialization format. |
Methods inherited from class com.iphrase.runtime.query.constraint.Constraint |
clearExplicit, clearHidden, clearNew, clearNotSerialized, clearPrePruned, clearRequired, clearState, equals, getConstraintLabel, getDisplayPrefix, getIsMentions, getState, getType, isExplicit, isHidden, isMentions, isNew, isNotSerialized, isPrePruned, isRangeConstraintType, isRequired, newInstance, newInstance, setExplicit, setHidden, setHidden, setNew, setNotSerialized, setPrePruned, setRequired, setState |
Methods inherited from class com.iphrase.runtime.query.Feature |
getId |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String[] getTerms()
String
array of text terms extracted from a text querypublic java.lang.String[] getLabels()
String
array of text terms extracted from a text querypublic java.lang.String getOperatorByTermIndex(int termIndex, java.lang.String andStr, java.lang.String orStr)
public java.lang.Object getValue()
Constraint.getValue()
getValue
in class Constraint
public void setValue(java.lang.String value)
Query
method.value
- String
value associated with this constraintpublic boolean matches(Constraint c)
matches
in class Constraint
c
- Constraint
to be matched against thistrue
if the two constraints are of the same type
and have identical fields (an identical serialization).
else false
.public java.lang.String toString()
Object.toString()
toString
in class java.lang.Object
String
of this constraintpublic java.lang.String getConstraintSubType()
getConstraintSubType
in class Constraint
public static Constraint newInstance(java.lang.String state) throws ArgumentError
String
.state
- OneStep serialization String
Constraint
instanceArgumentError
- public int getRemoveIndex(java.lang.String term)
|
© Copyright 2005, 2006. IBM Corporation. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |