public class OptionRestrictionRegex extends Object implements Serializable
A regular expression representing a restriction on a string configuration option value.
| Constructor and Description | 
|---|
| OptionRestrictionRegex()Default constructor for a new OptionRestrictionRegex object. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| String | getLabel()A unique name representing this regular expression. | 
| String | getPattern()The regular expression pattern that a string configuration option
 value with this restriction must match. | 
| int | hashCode() | 
| void | setLabel(String label)A unique name representing this regular expression. | 
| void | setPattern(String pattern)The regular expression pattern that a string configuration option
 value with this restriction must match. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| OptionRestrictionRegex | withLabel(String label)A unique name representing this regular expression. | 
| OptionRestrictionRegex | withPattern(String pattern)The regular expression pattern that a string configuration option
 value with this restriction must match. | 
public OptionRestrictionRegex()
public String getPattern()
public void setPattern(String pattern)
pattern - The regular expression pattern that a string configuration option
         value with this restriction must match.public OptionRestrictionRegex withPattern(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 String getLabel()
public void setLabel(String label)
label - A unique name representing this regular expression.public OptionRestrictionRegex withLabel(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 String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.