public class Filter extends Object
Constructor and Description |
---|
Filter(FilterType filterType,
String attributeName,
TextMatcher textMatcher) |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
Returns the attribute name stored in the said object
|
FilterType |
getFilterType()
Returns the filter Type stored in the said object.
|
TextMatcher |
getTextMatcher()
Returns the TextMatcher stored
|
static Filter |
whereAttribute(String attributeName,
TextMatcher textMatcher)
Returns a filter for the given attributeName value using given TextMatcher.
|
static Filter |
whereClass(TextMatcher textMatcher)
Returns filter for class attribute using given TextMatcher.
|
static Filter |
whereId(TextMatcher textMatcher)
Returns filter for id attribute using given TextMatcher.
|
static Filter |
whereName(TextMatcher textMatcher)
Returns filter for name attribute using given TextMatcher.
|
static Filter |
whereText(TextMatcher textMatcher)
Returns filter for filtering text of a element for a given TextMatcher.
|
static Filter |
withAttribute(String attributeName,
String attributeValue)
Returns the filter to exactly match the respective attributeName value
|
static Filter |
withClass(String classValue)
Returns the filter to exactly match the class attribute value
|
static Filter |
withId(String idValue)
Returns the filter to exactly match the id attribute value
|
static Filter |
withName(String nameValue)
Returns the filter to exactly match the name attribute value
|
static Filter |
withText(String textValue)
Returns the filter to exactly match the text value
|
public Filter(FilterType filterType, String attributeName, TextMatcher textMatcher)
public FilterType getFilterType()
public String getAttributeName()
public TextMatcher getTextMatcher()
public static Filter withId(String idValue)
idValue
- The value to comparepublic static Filter withName(String nameValue)
nameValue
- The value to comparepublic static Filter withClass(String classValue)
classValue
- The value to comparepublic static Filter withText(String textValue)
textValue
- The value to comparepublic static Filter withAttribute(String attributeName, String attributeValue)
attributeName
- The attribute name whose value have to be comparedattributeValue
- The value to comparepublic static Filter whereId(TextMatcher textMatcher)
TextMatching
class to get the
respective TextMatcher.textMatcher
- public static Filter whereName(TextMatcher textMatcher)
TextMatching
class to get the
respective TextMatcher.textMatcher
- public static Filter whereClass(TextMatcher textMatcher)
TextMatching
class to get the
respective TextMatchertextMatcher
- public static Filter whereText(TextMatcher textMatcher)
TextMatching
class to get the
respective TextMatchertextMatcher
- public static Filter whereAttribute(String attributeName, TextMatcher textMatcher)
TextMatching
class to get the
respective TextMatcher.attributeName
- textMatcher
- Copyright © 2014. All rights reserved.