public class DummyGroupConstraint extends java.lang.Object implements SearchConstraint, java.lang.Cloneable
Constructor and Description |
---|
DummyGroupConstraint(SearchConstraint source,
GroupCache cache) |
Modifier and Type | Method and Description |
---|---|
DummyGroupConstraint |
clone() |
GroupCache |
getCache() |
int |
getGroupId() |
java.lang.Object |
getInstance(java.lang.Object value) |
java.lang.Object |
getLabel(java.lang.Object value) |
SearchOperator |
getOperator() |
SearchConstraint |
getSource() |
java.lang.Object |
getSpecifier()
Returns the optional specifier used to further restrict
the matching process.
|
java.lang.String |
getToken()
Returns the token used to identify this constraint's
factory within a certain
ConstraintContext . |
java.lang.Object |
getValue()
Returns the value this constraint is meant to match
against.
|
void |
group(GroupCache cache,
int groupId,
java.lang.Object value) |
boolean |
isActive() |
boolean |
isMultiplexing() |
boolean |
isUndefined() |
boolean |
matches(java.lang.Object value)
Instead of doing a match check this implementation
directly delegates to the underlying
GroupCache 's
GroupCache.cacheGroupInstance(int, Object, boolean) method. |
void |
prepare() |
void |
setActive(boolean active) |
public DummyGroupConstraint(SearchConstraint source, GroupCache cache)
public boolean matches(java.lang.Object value)
GroupCache
's
GroupCache.cacheGroupInstance(int, Object, boolean)
method.matches
in interface SearchConstraint
DefaultConstraint.matches(java.lang.Object)
,
GroupCache#cacheGroupInstance(int, Object)
public DummyGroupConstraint clone()
clone
in interface SearchConstraint
clone
in class java.lang.Object
public int getGroupId()
public SearchConstraint getSource()
public GroupCache getCache()
public java.lang.String getToken()
SearchConstraint
ConstraintContext
.getToken
in interface SearchConstraint
SearchConstraint.getToken()
public java.lang.Object getValue()
SearchConstraint
getValue
in interface SearchConstraint
SearchConstraint.getValue()
public SearchOperator getOperator()
getOperator
in interface SearchConstraint
SearchConstraint.getOperator()
public java.lang.Object getInstance(java.lang.Object value)
getInstance
in interface SearchConstraint
SearchConstraint.getInstance(java.lang.Object)
public boolean isUndefined()
isUndefined
in interface SearchConstraint
SearchConstraint.isUndefined()
public void setActive(boolean active)
setActive
in interface SearchConstraint
SearchConstraint.setActive(boolean)
public boolean isActive()
isActive
in interface SearchConstraint
SearchConstraint.isActive()
public java.lang.Object getSpecifier()
SearchConstraint
getSpecifier
in interface SearchConstraint
SearchConstraint.getSpecifier()
public java.lang.Object getLabel(java.lang.Object value)
getLabel
in interface SearchConstraint
SearchConstraint.getLabel(java.lang.Object)
public boolean isMultiplexing()
isMultiplexing
in interface SearchConstraint
SearchConstraint.isMultiplexing()
public void group(GroupCache cache, int groupId, java.lang.Object value)
group
in interface SearchConstraint
public void prepare()
prepare
in interface SearchConstraint
SearchConstraint.prepare()