Package com.yahoo.prelude.query
Class TermType
java.lang.Object
com.yahoo.prelude.query.TermType
A term type enumeration.
- Author:
- bratseth, Steinar Knutsen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT typeboolean
Class<? extends CompositeItem>
Returns the CompositeItem type this type corresponds to, or CompositeItem if it's the defaultgetName()
int
hashCode()
boolean
hasItemClass
(Class<?> theClass) Returns true if the class corresponding to this type is the given classtoSign()
toString()
-
Field Details
-
RANK
-
AND
-
OR
-
NOT
-
PHRASE
-
EQUIV
-
DEFAULT
-
name
-
-
Method Details
-
getName
-
getItemClass
Returns the CompositeItem type this type corresponds to, or CompositeItem if it's the default -
hasItemClass
Returns true if the class corresponding to this type is the given class -
createItemClass
Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT type- Throws:
RuntimeException
- if an instance could not be created
-
toSign
-
toItemType
-
equals
-
hashCode
public int hashCode() -
toString
-