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

All Implemented Interfaces:
    Cloneable, java$io$Serializable, FlagsAttribute, Attribute, Serializable

This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.
Method from org.apache.lucene.analysis.tokenattributes.FlagsAttributeImpl Summary:
clear,   copyTo,   equals,   getFlags,   hashCode,   setFlags
Methods from org.apache.lucene.util.AttributeImpl:
clear,   clone,   copyTo,   equals,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.tokenattributes.FlagsAttributeImpl Detail:
 public  void clear() 
 public  void copyTo(AttributeImpl target) 
 public boolean equals(Object other) 
 public int getFlags() 
    EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.

    Get the bitset for any bits that have been set. This is completely distinct from TypeAttribute#type() , although they do share similar purposes. The flags can be used to encode information about the token for use by other org.apache.lucene.analysis.TokenFilter s.

 public int hashCode() 
 public  void setFlags(int flags)