public class ExampleMatcherAccessor extends Object
ExampleMatcher
to use in modules that support query by example (QBE) querying.Constructor and Description |
---|
ExampleMatcherAccessor(ExampleMatcher matcher) |
Modifier and Type | Method and Description |
---|---|
ExampleMatcher.StringMatcher |
getDefaultStringMatcher()
Get defined
ExampleMatcher.StringMatcher . |
ExampleMatcher.NullHandler |
getNullHandler()
Get defined null handling.
|
ExampleMatcher.PropertySpecifier |
getPropertySpecifier(String path)
Get the
ExampleMatcher.PropertySpecifier for given path. |
Collection<ExampleMatcher.PropertySpecifier> |
getPropertySpecifiers()
Returns the
ExampleMatcher.PropertySpecifier s of the underlying ExampleMatcher . |
ExampleMatcher.StringMatcher |
getStringMatcherForPath(String path)
Get the
ExampleMatcher.StringMatcher for a given path or return the default one if none defined. |
ExampleMatcher.PropertyValueTransformer |
getValueTransformerForPath(String path)
Get the ignore case flag for a given path or return
ExampleMatcher.NoOpPropertyValueTransformer if none
defined. |
boolean |
hasPropertySpecifier(String path)
Returns whether the underlying
ExampleMatcher contains a ExampleMatcher.PropertySpecifier for the given path. |
boolean |
hasPropertySpecifiers() |
boolean |
isIgnoreCaseEnabled() |
boolean |
isIgnoreCaseForPath(String path)
Get the ignore case flag for a given path or return the default one if none defined.
|
boolean |
isIgnoredPath(String path) |
public ExampleMatcherAccessor(ExampleMatcher matcher)
public Collection<ExampleMatcher.PropertySpecifier> getPropertySpecifiers()
ExampleMatcher.PropertySpecifier
s of the underlying ExampleMatcher
.Collection
of ExampleMatcher.PropertySpecifier
s.public boolean hasPropertySpecifier(String path)
ExampleMatcher
contains a ExampleMatcher.PropertySpecifier
for the given path.path
- the dot-path identifying a property.ExampleMatcher.PropertySpecifier
defined for given path.public ExampleMatcher.PropertySpecifier getPropertySpecifier(String path)
ExampleMatcher.PropertySpecifier
for given path. hasPropertySpecifier(String)
to avoid running into null values.path
- Dot-Path to property.ExampleMatcher.PropertySpecifier
defined for path.public boolean hasPropertySpecifiers()
ExampleMatcher.PropertySpecifier
defined.public ExampleMatcher.StringMatcher getStringMatcherForPath(String path)
ExampleMatcher.StringMatcher
for a given path or return the default one if none defined.path
- public ExampleMatcher.NullHandler getNullHandler()
public ExampleMatcher.StringMatcher getDefaultStringMatcher()
ExampleMatcher.StringMatcher
.public boolean isIgnoreCaseEnabled()
String
should be matched with ignore case option.public boolean isIgnoredPath(String path)
path
- public boolean isIgnoreCaseForPath(String path)
path
- public ExampleMatcher.PropertyValueTransformer getValueTransformerForPath(String path)
ExampleMatcher.NoOpPropertyValueTransformer
if none
defined.path
- Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.