public abstract class AbstractStructuredFieldPosition extends java.lang.Object implements StructuredFieldPosition
| Constructor and Description |
|---|
AbstractStructuredFieldPosition(java.lang.String termText,
boolean isTerminal,
boolean isAbsolute) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowslinkingByParent() |
boolean |
allowsLinkingBySelf() |
boolean |
equals(java.lang.Object obj) |
CachingTermPositions |
getCachingTermPositions() |
abstract java.lang.String |
getDescription() |
int |
getPosition()
If absolute return the position.
|
java.lang.String |
getTermText()
Get the test to search for in the term query.
|
int |
hashCode() |
boolean |
isAbsolute()
Is this an absolute element; that is, it knows its exact position.
|
boolean |
isDescendant() |
boolean |
isRelative()
This element only knows its position relative to the previous element.
|
boolean |
isTerminal()
If this position is last in the chain and it is terminal it will ensure
it is an exact match for the length of the chain found.
|
boolean |
linkParent() |
boolean |
linkSelf()
Normally paths would require onlt parent chaining.
|
boolean |
matchesAll() |
void |
setCachingTermPositions(CachingTermPositions tps)
A reference to the caching term positions this element uses.
|
protected void |
setTerminal(boolean isTerminal) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitmatchespublic AbstractStructuredFieldPosition(java.lang.String termText,
boolean isTerminal,
boolean isAbsolute)
public boolean isTerminal()
StructuredFieldPositionisTerminal in interface StructuredFieldPositionprotected void setTerminal(boolean isTerminal)
public boolean isAbsolute()
StructuredFieldPositionisAbsolute in interface StructuredFieldPositionpublic boolean isRelative()
StructuredFieldPositionisRelative in interface StructuredFieldPositionpublic java.lang.String getTermText()
StructuredFieldPositiongetTermText in interface StructuredFieldPositionpublic int getPosition()
StructuredFieldPositiongetPosition in interface StructuredFieldPositionpublic void setCachingTermPositions(CachingTermPositions tps)
StructuredFieldPositionsetCachingTermPositions in interface StructuredFieldPositionpublic CachingTermPositions getCachingTermPositions()
getCachingTermPositions in interface StructuredFieldPositionpublic boolean allowsLinkingBySelf()
allowsLinkingBySelf in interface StructuredFieldPositionpublic boolean allowslinkingByParent()
allowslinkingByParent in interface StructuredFieldPositionpublic boolean linkParent()
linkParent in interface StructuredFieldPositionpublic boolean linkSelf()
StructuredFieldPositionlinkSelf in interface StructuredFieldPositionpublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String getDescription()
public boolean isDescendant()
isDescendant in interface StructuredFieldPositionpublic boolean matchesAll()
matchesAll in interface StructuredFieldPositionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.