final class SubstringFilter extends AbstractFilter
| Modifier and Type | Field and Description |
|---|---|
private String[] |
any
The array of any substring strings.
|
private String |
attribute
The AttributeType for this filter
|
private String |
end
The final substring string.
|
private String |
initial
The initial substring string.
|
| Modifier | Constructor and Description |
|---|---|
private |
SubstringFilter(String attribute,
String initial,
String[] any,
String end)
A private constructor that builds a SubstringFilter
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
build(StringBuilder builder) |
static SubstringFilter |
contains(String attribute,
String... parts)
Create a SubstringFilter based on the filter elements.
|
static SubstringFilter |
endsWith(String attribute,
String... parts)
Create a SubstringFilter based on the filter elements.
|
static SubstringFilter |
startsWith(String attribute,
String... parts)
Create a SubstringFilter based on the filter elements.
|
static SubstringFilter |
substring(String attribute,
String... parts)
Create a SubstringFilter based on the filter elements.
|
buildprivate String attribute
private String initial
private String[] any
private String end
public static SubstringFilter startsWith(String attribute, String... parts)
attribute - The AttributeType for this filterparts - The parts that are the initial string and zero to N any stringspublic static SubstringFilter endsWith(String attribute, String... parts)
attribute - The AttributeType for this filterparts - The parts that are zero to N any strings followed by a final stringpublic static SubstringFilter contains(String attribute, String... parts)
attribute - The AttributeType for this filterparts - The parts that are zero to N any strings with no initial nor final Stringspublic static SubstringFilter substring(String attribute, String... parts)
attribute - The AttributeType for this filterparts - The parts that are zero to N any strings starting with an initial String and
followed by a final stringpublic StringBuilder build(StringBuilder builder)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.