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, wait
matches
public AbstractStructuredFieldPosition(java.lang.String termText, boolean isTerminal, boolean isAbsolute)
public boolean isTerminal()
StructuredFieldPosition
isTerminal
in interface StructuredFieldPosition
protected void setTerminal(boolean isTerminal)
public boolean isAbsolute()
StructuredFieldPosition
isAbsolute
in interface StructuredFieldPosition
public boolean isRelative()
StructuredFieldPosition
isRelative
in interface StructuredFieldPosition
public java.lang.String getTermText()
StructuredFieldPosition
getTermText
in interface StructuredFieldPosition
public int getPosition()
StructuredFieldPosition
getPosition
in interface StructuredFieldPosition
public void setCachingTermPositions(CachingTermPositions tps)
StructuredFieldPosition
setCachingTermPositions
in interface StructuredFieldPosition
public CachingTermPositions getCachingTermPositions()
getCachingTermPositions
in interface StructuredFieldPosition
public boolean allowsLinkingBySelf()
allowsLinkingBySelf
in interface StructuredFieldPosition
public boolean allowslinkingByParent()
allowslinkingByParent
in interface StructuredFieldPosition
public boolean linkParent()
linkParent
in interface StructuredFieldPosition
public boolean linkSelf()
StructuredFieldPosition
linkSelf
in interface StructuredFieldPosition
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String getDescription()
public boolean isDescendant()
isDescendant
in interface StructuredFieldPosition
public boolean matchesAll()
matchesAll
in interface StructuredFieldPosition
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.