org.alfresco.repo.search.impl.lucene.query
Class AnyStructuredFieldPosition

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.query.AbstractStructuredFieldPosition
      extended by org.alfresco.repo.search.impl.lucene.query.AnyStructuredFieldPosition
All Implemented Interfaces:
StructuredFieldPosition
Direct Known Subclasses:
DescendantAndSelfStructuredFieldPosition

public class AnyStructuredFieldPosition
extends AbstractStructuredFieldPosition


Constructor Summary
AnyStructuredFieldPosition()
           
AnyStructuredFieldPosition(java.lang.String termText)
           
 
Method Summary
 java.lang.String getDescription()
           
 int matches(int start, int end, int offset)
          Does this element match
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.query.AbstractStructuredFieldPosition
allowslinkingByParent, allowsLinkingBySelf, equals, getCachingTermPositions, getPosition, getTermText, hashCode, isAbsolute, isDescendant, isRelative, isTerminal, linkParent, linkSelf, matchesAll, setCachingTermPositions, setTerminal, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyStructuredFieldPosition

public AnyStructuredFieldPosition(java.lang.String termText)

AnyStructuredFieldPosition

public AnyStructuredFieldPosition()
Method Detail

matches

public int matches(int start,
                   int end,
                   int offset)
            throws java.io.IOException
Description copied from interface: StructuredFieldPosition
Does this element match

Parameters:
start - - the start postion of the paths terms
end - - the end position of the paths terms
offset - - the current offset in the path
Returns:
returns the next match position (usually offset + 1) or -1 if it does not match.
Throws:
java.io.IOException

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class AbstractStructuredFieldPosition


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.