org.apache.lucene.analysis.tokenattributes
Interface FlagsAttribute

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

public interface FlagsAttribute
extends Attribute

This attribute can be used to pass different flags down the Tokenizer chain, eg from one TokenFilter to another one.


Method Summary
 int getFlags()
          EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.
 void setFlags(int flags)
           
 

Method Detail

getFlags

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 TokenFilters.

Returns:
The bits

setFlags

void setFlags(int flags)
See Also:
getFlags()


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