|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Matcher | |
|---|---|
| org.terracotta.context.extended | |
| org.terracotta.context.query | |
| Uses of Matcher in org.terracotta.context.extended |
|---|
| Methods in org.terracotta.context.extended that return Matcher | |
|---|---|
static Matcher<Map<String,Object>> |
ExtendedMatchers.hasProperty(String key)
Returns a matcher that checks if the "properties" attribute contains an entry for key. |
static Matcher<Map<String,Object>> |
ExtendedMatchers.hasProperty(String key,
String value)
Returns a matcher that checks if the "properties" attribute contains an entry for key and a value equals
to value. |
static Matcher<Map<String,Object>> |
ExtendedMatchers.hasTag(String tag)
Returns a matcher that checks if the "tags" attribute contains the tag. |
static Matcher<Map<String,Object>> |
ExtendedMatchers.hasTags(Collection<String> tags)
Returns a matcher that checks if the "tags" attribute contains all the tags. |
static Matcher<Map<String,Object>> |
ExtendedMatchers.hasTags(String... tags)
Returns a matcher that checks if the "tags" attribute contains all the tags. |
| Uses of Matcher in org.terracotta.context.query |
|---|
| Methods in org.terracotta.context.query that return Matcher | ||
|---|---|---|
static
|
Matchers.allOf(Matcher<? super T>... matchers)
Returns a matcher that matches when against objects which match all of the supplied matchers. |
|
static
|
Matchers.anyOf(Matcher<? super T>... matchers)
Returns a matcher that matches when against objects which match any of the supplied matchers. |
|
static Matcher<ContextElement> |
Matchers.attributes(Matcher<Map<String,Object>> matcher)
Returns a matcher that matches context elements whose ContextElement.attributes()
match against the supplied matcher. |
|
static Matcher<TreeNode> |
Matchers.context(Matcher<ContextElement> matcher)
Returns a matcher that matches tree nodes whose TreeNode.getContext()
match against the supplied matcher. |
|
static Matcher<Map<String,Object>> |
Matchers.hasAttribute(String key,
Matcher<? extends Object> value)
Returns a matcher that matches attribute maps the include an attribute with the given name, and whose value matches the given matcher. |
|
static Matcher<Map<String,Object>> |
Matchers.hasAttribute(String key,
Object value)
Returns a matcher that matches attribute maps that include the given attribute entry. |
|
static Matcher<ContextElement> |
Matchers.identifier(Matcher<Class<?>> matcher)
Returns a matcher that matches context elements whose ContextElement.identifier()
match against the supplied matcher. |
|
static
|
Matchers.not(Matcher<T> matcher)
|
|
static Matcher<Class<?>> |
Matchers.subclassOf(Class<?> klazz)
Returns a matcher that matches classes that are sub-types of the supplied class. |
|
| Methods in org.terracotta.context.query with parameters of type Matcher | ||
|---|---|---|
static
|
Matchers.allOf(Matcher<? super T>... matchers)
Returns a matcher that matches when against objects which match all of the supplied matchers. |
|
static
|
Matchers.anyOf(Matcher<? super T>... matchers)
Returns a matcher that matches when against objects which match any of the supplied matchers. |
|
static Matcher<ContextElement> |
Matchers.attributes(Matcher<Map<String,Object>> matcher)
Returns a matcher that matches context elements whose ContextElement.attributes()
match against the supplied matcher. |
|
static Matcher<TreeNode> |
Matchers.context(Matcher<ContextElement> matcher)
Returns a matcher that matches tree nodes whose TreeNode.getContext()
match against the supplied matcher. |
|
QueryBuilder |
QueryBuilder.filter(Matcher<? super TreeNode> filter)
Filters the current node set using the supplied Matcher. |
|
static Matcher<Map<String,Object>> |
Matchers.hasAttribute(String key,
Matcher<? extends Object> value)
Returns a matcher that matches attribute maps the include an attribute with the given name, and whose value matches the given matcher. |
|
static Matcher<ContextElement> |
Matchers.identifier(Matcher<Class<?>> matcher)
Returns a matcher that matches context elements whose ContextElement.identifier()
match against the supplied matcher. |
|
static
|
Matchers.not(Matcher<T> matcher)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||