Package com._1c.g5.v8.dt.form.search
Class FilterData
- java.lang.Object
-
- com._1c.g5.v8.dt.form.search.FilterData
-
public class FilterData extends Object
Represents a filter data.
-
-
Constructor Summary
Constructors Constructor Description FilterData()
Initializes a new instance of class with empty filter string and case-insensitive matching.FilterData(FilterData other)
Initializes a new instance of class.FilterData(String filterString)
Initializes a new instance of class with the specified filter string and case-insensitive matching.FilterData(String filterString, boolean isCaseSensitive)
Initializes a new instance of class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
asPattern()
Returns a new instance of the compiled pattern.boolean
equals(Object obj)
String
getFilterString()
Gets the filter string.int
hashCode()
boolean
isCaseSensitive()
Gets a value indicating whether the case-sensitive matching is enabled.boolean
isEmpty()
Indicates whether the filter is empty.
-
-
-
Constructor Detail
-
FilterData
public FilterData()
Initializes a new instance of class with empty filter string and case-insensitive matching.
-
FilterData
public FilterData(String filterString)
Initializes a new instance of class with the specified filter string and case-insensitive matching.- Parameters:
filterString
- the filter string, can benull
.
-
FilterData
public FilterData(String filterString, boolean isCaseSensitive)
Initializes a new instance of class.- Parameters:
filterString
- the filter string, can benull
.isCaseSensitive
- enables case-sensitive matching.
-
FilterData
public FilterData(FilterData other)
Initializes a new instance of class. Copy constructor.- Parameters:
other
- the other instance ofFilterData
to copy from, can not benull
.
-
-
Method Detail
-
getFilterString
public String getFilterString()
Gets the filter string.- Returns:
- the filter string, never
null
.
-
isCaseSensitive
public boolean isCaseSensitive()
Gets a value indicating whether the case-sensitive matching is enabled.- Returns:
- true if case-sensitive matching is enabled; otherwise, false.
-
asPattern
public Pattern asPattern()
Returns a new instance of the compiled pattern.- Returns:
- a new instance of
Pattern
. - Throws:
IllegalStateException
- if the filter is empty.PatternSyntaxException
- if the expression's syntax is invalid.
-
isEmpty
public boolean isEmpty()
Indicates whether the filter is empty.- Returns:
- true if filter string is empty filter string that trimmed before; otherwise, false.
-
-