Class StringMatcher
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.StringMatcher
-
- Direct Known Subclasses:
StringMatcher.AnyStringMatcher,StringMatcher.ConstantMatcher,StringMatcher.NullValueMatcher,StringMatcher.RegexMatcher
public abstract class StringMatcher extends java.lang.ObjectA string matcher is able to match against a string value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringMatcher.AnyStringMatcherAStringMatcherwhich matches any string value, including the null value.static classStringMatcher.ConstantMatcherAStringMatcherwhich matches a particular, constant, non-null string value.static classStringMatcher.NullValueMatcherAStringMatcherwhich only matches the null value.static classStringMatcher.RegexMatcherAStringMatcherwhich matches a full string value against a given regular expression.
Note: in order to match, the regular expression must match the full value, rather than just match a substring.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object o)abstract inthashCode()abstract ResultAndWarnings<java.lang.Boolean>matches(java.lang.String name)Performs a match on the given value, return a result object.abstract java.lang.StringtoString()
-
-
-
Method Detail
-
matches
@Nonnull public abstract ResultAndWarnings<java.lang.Boolean> matches(@Nullable java.lang.String name)
Performs a match on the given value, return a result object.
-
toString
public abstract java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-