Package org.mockserver.model
Class NottableString
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.model.NottableString
- All Implemented Interfaces:
Comparable<NottableString>
- Direct Known Subclasses:
NottableOptionalString,NottableSchemaString
- Author:
- jamesdbloom
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(NottableString other) static List<NottableString>deserializeNottableStrings(String... strings) static List<NottableString>deserializeNottableStrings(List<String> strings) booleanbooleanequalsIgnoreCase(Object other) getValue()inthashCode()booleanisBlank()booleanisNot()booleanbooleanbooleanCompile this value as a regex and test it againstinput.static NottableStringstatic StringserialiseNottableString(NottableString nottableString) serialiseNottableStrings(Collection<NottableString> nottableStrings) static NottableStringstatic NottableStringstatic List<NottableString>static List<NottableString>strings(Collection<String> values) toString()withSchemaType(String schemaType) withStyle(ParameterStyle style) Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Field Details
-
NOT_CHAR
public static final char NOT_CHAR- See Also:
-
-
Method Details
-
deserializeNottableStrings
-
deserializeNottableStrings
-
serialiseNottableString
-
serialiseNottableStrings
-
string
-
string
-
not
-
strings
-
strings
-
getValue
-
isNot
public boolean isNot() -
isOptional
public boolean isOptional() -
getParameterStyle
-
withStyle
-
getSchemaType
-
withSchemaType
-
lowercase
-
equalsIgnoreCase
-
isBlank
public boolean isBlank() -
matches
-
matches
Compile this value as a regex and test it againstinput.When
caseSensitiveisfalse(the default — every pre-existing caller) the pattern is compiled withDOTALL | CASE_INSENSITIVE | UNICODE_CASE, exactly as before, so behaviour is byte-for-byte unchanged. WhencaseSensitiveistrue(only the method/path/string-body matchers, and only when the opt-inmatchExactCaseflag is on) the pattern is compiled withDOTALLalone, so matching is case-sensitive. The two compiled patterns are cached independently so a value can be used both ways without recompiling. -
equals
- Overrides:
equalsin classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()- Overrides:
hashCodein classObjectWithReflectiveEqualsHashCodeToString
-
toString
- Overrides:
toStringin classObjectWithJsonToString
-
compareTo
- Specified by:
compareToin interfaceComparable<NottableString>
-