|
|||||||||
| 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.TypeAttributeImpl
public class TypeAttributeImpl
Default implementation of TypeAttribute.
| Field Summary |
|---|
| Fields inherited from interface org.apache.lucene.analysis.tokenattributes.TypeAttribute |
|---|
DEFAULT_TYPE |
| Constructor Summary | |
|---|---|
TypeAttributeImpl()
Initialize this attribute with TypeAttribute.DEFAULT_TYPE |
|
TypeAttributeImpl(String type)
Initialize this attribute with type |
|
| 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 other)
|
int |
hashCode()
|
void |
setType(String type)
Set the lexical type. |
String |
type()
Returns this Token's lexical type. |
| 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 TypeAttributeImpl()
TypeAttribute.DEFAULT_TYPE
public TypeAttributeImpl(String type)
type
| Method Detail |
|---|
public String type()
TypeAttribute
type in interface TypeAttributeTypeAttribute.setType(String)public void setType(String type)
TypeAttribute
setType in interface TypeAttributeTypeAttribute.type()public void clear()
AttributeImpl
clear in class AttributeImplpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void copyTo(AttributeImpl target)
AttributeImpl
copyTo in class AttributeImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||