Save This Page
Home » lucene-3.0.1-src » org.apache.lucene.analysis.tokenattributes » [javadoc | source]
org.apache.lucene.analysis.tokenattributes
public interface: TypeAttribute [javadoc | source]

All Implemented Interfaces:
    Attribute

All Known Implementing Classes:
    Token, TypeAttributeImpl

A Token's lexical type. The Default value is "word".
Method from org.apache.lucene.analysis.tokenattributes.TypeAttribute Summary:
setType,   type
Method from org.apache.lucene.analysis.tokenattributes.TypeAttribute Detail:
 public  void setType(String type)
    Set the lexical type.
 public String type()
    Returns this Token's lexical type. Defaults to "word".