Package com.yahoo.prelude.query
Class TermType
- java.lang.Object
-
- com.yahoo.prelude.query.TermType
-
public class TermType extends java.lang.Object
A term type enumeration- Author:
- bratseth, Steinar Knutsen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
createItemClass()
Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT typeboolean
equals(java.lang.Object o)
java.lang.Class<? extends CompositeItem>
getItemClass()
Returns the CompositeItem type this type corresponds to, or CompositeItem if it's the defaultjava.lang.String
getName()
int
hashCode()
boolean
hasItemClass(java.lang.Class<?> theClass)
Returns true if the class corresponding to this type is the given classjava.lang.String
toSign()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getItemClass
public java.lang.Class<? extends CompositeItem> getItemClass()
Returns the CompositeItem type this type corresponds to, or CompositeItem if it's the default
-
hasItemClass
public boolean hasItemClass(java.lang.Class<?> theClass)
Returns true if the class corresponding to this type is the given class
-
createItemClass
public Item createItemClass()
Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT type- Throws:
java.lang.RuntimeException
- if an instance could not be created
-
toSign
public java.lang.String toSign()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-