public class OptionRestrictionRegex
extends java.lang.Object
implements java.io.Serializable
A regular expression representing a restriction on a string configuration option value.
| コンストラクタと説明 |
|---|
OptionRestrictionRegex()
Default constructor for a new OptionRestrictionRegex object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
public OptionRestrictionRegex()
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern - The regular expression pattern that a string configuration option
value with this restriction must match.public OptionRestrictionRegex withPattern(java.lang.String pattern)
Returns a reference to this object so that method calls can be chained together.
pattern - The regular expression pattern that a string configuration option
value with this restriction must match.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - A unique name representing this regular expression.public OptionRestrictionRegex withLabel(java.lang.String label)
Returns a reference to this object so that method calls can be chained together.
label - A unique name representing this regular expression.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object