org.apache.lucene.analysis.tokenattributes
Interface TypeAttribute

All Superinterfaces:
Attribute
All Known Implementing Classes:
Token, TypeAttributeImpl

public interface TypeAttribute
extends Attribute

A Token's lexical type. The Default value is "word".


Method Summary
 void setType(String type)
          Set the lexical type.
 String type()
          Returns this Token's lexical type.
 

Method Detail

type

String type()
Returns this Token's lexical type. Defaults to "word".


setType

void setType(String type)
Set the lexical type.

See Also:
type()


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.