Interface StringMatchBuilder<T extends DataObject>
- Type Parameters:
T
- query result type
- All Superinterfaces:
ValueMatchBuilder<T,
String>
Builder for a match of a String leaf value.
-
Method Summary
Modifier and TypeMethodDescription@NonNull ValueMatch<T>
Match if the leaf exists and its value contains specified string, i.e.@NonNull ValueMatch<T>
Match if the leaf exists and its value ends with specified string.@NonNull ValueMatch<T>
matchesPattern
(Pattern pattern) Match if the leaf exists and its value matches with specified pattern.@NonNull ValueMatch<T>
startsWith
(String str) Match if the leaf exists and its value starts with specified string, i.e.Methods inherited from interface org.opendaylight.mdsal.binding.api.query.ValueMatchBuilder
isNull, nonNull, valueEquals
-
Method Details
-
startsWith
Match if the leaf exists and its value starts with specified string, i.e. itsString.startsWith(String)
would return true.- Parameters:
str
- string to match as prefix- Returns:
- A ValueMatch
- Throws:
NullPointerException
- if str is null
-
endsWith
Match if the leaf exists and its value ends with specified string. i.e. itsString.endsWith(String)
would return true.- Parameters:
str
- string to match as suffix- Returns:
- A ValueMatch
- Throws:
NullPointerException
- if str is null
-
contains
Match if the leaf exists and its value contains specified string, i.e. itsString.contains(CharSequence)
would return true.- Parameters:
str
- the string to search for- Returns:
- A ValueMatch
- Throws:
NullPointerException
- if str is null
-
matchesPattern
Match if the leaf exists and its value matches with specified pattern.- Parameters:
pattern
- pattern to check against- Returns:
- A ValueMatch
- Throws:
NullPointerException
- if pattern is null
-