public class OptionRestrictionRegex
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A regular expression representing a restriction on a string configuration option value.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
label
A unique name representing this regular expression.
|
private java.lang.String |
pattern
The regular expression pattern that a string configuration option value
with this restriction must match.
|
Constructor and Description |
---|
OptionRestrictionRegex() |
Modifier and Type | Method and Description |
---|---|
OptionRestrictionRegex |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLabel()
A unique name representing this regular expression.
|
java.lang.String |
getPattern()
The regular expression pattern that a string configuration option value
with this restriction must match.
|
int |
hashCode() |
void |
setLabel(java.lang.String label)
A unique name representing this regular expression.
|
void |
setPattern(java.lang.String pattern)
The regular expression pattern that a string configuration option value
with this restriction must match.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OptionRestrictionRegex |
withLabel(java.lang.String label)
A unique name representing this regular expression.
|
OptionRestrictionRegex |
withPattern(java.lang.String pattern)
The regular expression pattern that a string configuration option value
with this restriction must match.
|
private java.lang.String pattern
The regular expression pattern that a string configuration option value with this restriction must match.
private java.lang.String label
A unique name representing this regular expression.
public void setPattern(java.lang.String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.
pattern
- The regular expression pattern that a string configuration option
value with this restriction must match.public java.lang.String getPattern()
The regular expression pattern that a string configuration option value with this restriction must match.
public OptionRestrictionRegex withPattern(java.lang.String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.
pattern
- The regular expression pattern that a string configuration option
value with this restriction must match.public void setLabel(java.lang.String label)
A unique name representing this regular expression.
label
- A unique name representing this regular expression.public java.lang.String getLabel()
A unique name representing this regular expression.
public OptionRestrictionRegex withLabel(java.lang.String label)
A unique name representing this regular expression.
label
- A unique name representing this regular expression.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public OptionRestrictionRegex clone()
clone
in class java.lang.Object