org.apache.lucene.queryParser.standard.config
Class LocaleAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.queryParser.standard.config.LocaleAttributeImpl
- All Implemented Interfaces:
- Serializable, Cloneable, LocaleAttribute, org.apache.lucene.util.Attribute
public class LocaleAttributeImpl
- extends org.apache.lucene.util.AttributeImpl
- implements LocaleAttribute
This attribute is used by processor ParametricRangeQueryNodeProcessor
and must be defined in the QueryConfigHandler
. This attribute tells
the processor what is the default Locale
used to parse a date.
- See Also:
LocaleAttribute
,
Serialized Form
Fields inherited from class org.apache.lucene.util.AttributeImpl |
enableBackwards |
Methods inherited from class org.apache.lucene.util.AttributeImpl |
clone, reflectAsString, reflectWith |
LocaleAttributeImpl
public LocaleAttributeImpl()
setLocale
public void setLocale(Locale locale)
- Specified by:
setLocale
in interface LocaleAttribute
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface LocaleAttribute
clear
public void clear()
- Specified by:
clear
in class org.apache.lucene.util.AttributeImpl
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyTo
in class org.apache.lucene.util.AttributeImpl
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class org.apache.lucene.util.AttributeImpl
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.