lux.index.attribute
Interface QNameAttribute

All Superinterfaces:
org.apache.lucene.util.Attribute
All Known Implementing Classes:
QNameAttributeImpl

public interface QNameAttribute
extends org.apache.lucene.util.Attribute

Mark a token as occurring within the scope of a list of QNames


Method Summary
 void addQName(QName qname)
          add another QName, and reset the counter.
 void clearQNames()
          clear the current set of QNames.
 boolean hasNext()
           
 QName next()
           
 boolean onFirst()
           
 

Method Detail

hasNext

boolean hasNext()
Returns:
whether there are any more QNames

onFirst

boolean onFirst()
Returns:
whether the next QName is the first QName

next

QName next()
Returns:
the next QName

addQName

void addQName(QName qname)
add another QName, and reset the counter.

Parameters:
qname - the QName to associate with the current token

clearQNames

void clearQNames()
clear the current set of QNames. We don't do this in clear() since we want these to persist across a range of tokens



Copyright © 2013. All Rights Reserved.