|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 AttributeImplpublic void copyTo(AttributeImpl target)
AttributeImpl
copyTo in class AttributeImplpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isKeyword()
KeywordAttributetrue if the current token is a keyword, otherwise
false
isKeyword in interface KeywordAttributetrue if the current token is a keyword, otherwise
falseKeywordAttribute.setKeyword(boolean)public void setKeyword(boolean isKeyword)
KeywordAttributetrue.
setKeyword in interface KeywordAttributeisKeyword - 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 | ||||||||