|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.AttributeImpl org.apache.lucene.analysis.tokenattributes.KeywordAttributeImpl
public final class KeywordAttributeImpl
Default implementation of KeywordAttribute
.
Constructor Summary | |
---|---|
KeywordAttributeImpl()
Initialize this attribute with the keyword value as false. |
Method Summary | |
---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its default value. |
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in target attribute. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isKeyword()
Returns true if the current token is a keyword, otherwise
false |
void |
setKeyword(boolean isKeyword)
Marks the current token as keyword if set to true . |
Methods inherited from class org.apache.lucene.util.AttributeImpl |
---|
clone, reflectAsString, reflectWith |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeywordAttributeImpl()
Method Detail |
---|
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean isKeyword()
KeywordAttribute
true
if the current token is a keyword, otherwise
false
isKeyword
in interface KeywordAttribute
true
if the current token is a keyword, otherwise
false
KeywordAttribute.setKeyword(boolean)
public void setKeyword(boolean isKeyword)
KeywordAttribute
true
.
setKeyword
in interface KeywordAttribute
isKeyword
- true
if the current token is a keyword, otherwise
false
.KeywordAttribute.isKeyword()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |