public final class FilterConstructor extends Object
| Modifier and Type | Method and Description |
|---|---|
static Filter |
buildFilter(String name,
FilterType type,
Class matcherType)
Create a filter by name
|
static Filter |
containingText(String text)
Create a filter by text
|
static FilterBuilder |
with(String attribute)
Create a filter builder for the attribute
|
static Filter |
with(String customAttribute,
Matcher matcher)
Deprecated.
|
static Filter |
with(String customAttribute,
String matcher)
Deprecated.
|
static FilterBuilder |
withClass()
Create a filter builder for the attribute by class
|
static Filter |
withClass(String klass)
Create a filter by class
|
static FilterBuilder |
withId()
Create a filter builder for the attribute by id
|
static Filter |
withId(Matcher matcher)
Deprecated.
|
static Filter |
withId(String id)
Create a filter by id
|
static FilterBuilder |
withName()
Create a filter builder for the attribute by name
|
static Filter |
withName(Matcher matcher)
Deprecated.
|
static Filter |
withName(String name)
Create a filter by name
|
static FilterBuilder |
withText()
Create a filter builder for the attribute by text
|
static Filter |
withText(Matcher matcher)
Deprecated.
|
static Filter |
withText(String text)
Create a filter by text
|
public static Filter buildFilter(String name, FilterType type, Class matcherType)
name - element nametype - filter typematcherType - class for matcherTypepublic static Filter withName(String name)
name - element namepublic static Filter withId(String id)
id - element idpublic static Filter withClass(String klass)
klass - CSS class namepublic static Filter withText(String text)
text - to filter in contentpublic static Filter containingText(String text)
text - to filter in contentpublic static FilterBuilder with(String attribute)
attribute - attribute namepublic static FilterBuilder withName()
public static FilterBuilder withId()
public static FilterBuilder withClass()
public static FilterBuilder withText()
@Deprecated public static Filter withName(Matcher matcher)
matcher - matcher object@Deprecated public static Filter withId(Matcher matcher)
matcher - matcher object@Deprecated public static Filter withText(Matcher matcher)
matcher - matcher object@Deprecated public static Filter with(String customAttribute, Matcher matcher)
customAttribute - custom attribute namematcher - matcher object@Deprecated public static Filter with(String customAttribute, String matcher)
customAttribute - custom attribute namematcher - string matcherCopyright © 2015 AConsulting. All Rights Reserved.