Class RegexProperty
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.DslProperty
-
- org.springframework.cloud.contract.spec.internal.RegexProperty
-
- All Implemented Interfaces:
Serializable,CanBeDynamic
public class RegexProperty extends DslProperty implements CanBeDynamic
Represents a regular expression property.- Since:
- 2.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegexProperty(Object value)RegexProperty(Object client, Object server)RegexProperty(Object client, Object server, Class clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexPropertyasBooleanType()RegexPropertyasDouble()RegexPropertyasFloat()RegexPropertyasInteger()RegexPropertyasLong()RegexPropertyasShort()RegexPropertyasString()RegexPropertyasString(String charset)RegexPropertyasString(Charset charset)Classclazz()RegexPropertyconcreteClientDynamicProducer()RegexPropertyconcreteClientEscapedDynamicProducer()RegexPropertydynamicClientConcreteProducer()RegexPropertydynamicClientEscapedConcreteProducer()booleanequals(Object o)Objectgenerate()ObjectgenerateAndEscapeJavaStringIfNeeded()ObjectgenerateConcreteValue()ClassgetClazz()PatterngetPattern()inthashCode()Matchermatcher(CharSequence input)Stringpattern()StringtoString()-
Methods inherited from class org.springframework.cloud.contract.spec.internal.DslProperty
getClientValue, getServerValue, isSingleValue
-
-
-
-
Method Detail
-
matcher
public Matcher matcher(CharSequence input)
-
pattern
public String pattern()
-
clazz
public Class clazz()
-
asInteger
public RegexProperty asInteger()
-
asDouble
public RegexProperty asDouble()
-
asFloat
public RegexProperty asFloat()
-
asLong
public RegexProperty asLong()
-
asShort
public RegexProperty asShort()
-
asString
public RegexProperty asString()
-
asString
public RegexProperty asString(Charset charset)
-
asString
public RegexProperty asString(String charset)
-
asBooleanType
public RegexProperty asBooleanType()
-
generate
public Object generate()
-
generateAndEscapeJavaStringIfNeeded
public Object generateAndEscapeJavaStringIfNeeded()
-
dynamicClientConcreteProducer
public RegexProperty dynamicClientConcreteProducer()
-
concreteClientDynamicProducer
public RegexProperty concreteClientDynamicProducer()
-
concreteClientEscapedDynamicProducer
public RegexProperty concreteClientEscapedDynamicProducer()
-
dynamicClientEscapedConcreteProducer
public RegexProperty dynamicClientEscapedConcreteProducer()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDslProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDslProperty
-
toString
public String toString()
- Overrides:
toStringin classDslProperty
-
generateConcreteValue
public Object generateConcreteValue()
- Specified by:
generateConcreteValuein interfaceCanBeDynamic- Returns:
- a generated, concrete value.
-
getPattern
public Pattern getPattern()
-
getClazz
public Class getClazz()
-
-