public class EmailDomain extends AbstractStringDomain
| Constructor and Description |
|---|
EmailDomain()
Creates a new EmailDomain instance.
|
EmailDomain(int maxLength)
Creates a new EmailDomain instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String value)
Returns true if the given value belongs to this domain.
|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected void |
initLengthRange()
Defines the initial length range for values in this domain.
|
static boolean |
isEmail(String value)
Returns true if the given value is a valid email address
|
protected String |
newValue(ResolverContext context,
int length)
Returns a new random string of the given length for this domain.
|
void |
setLengthRange(Integer length)
Defines a constant length range for values in this domain.
|
void |
setLengthRange(Integer min,
Integer max)
Defines the length range for values in this domain.
|
candidates, getLength, newValue, setExcludedStringsgetExcluded, getLengthRange, getMaxLength, getTypes, isNotExcluded, isRestrictedLength, setExcluded, setLengthRange, setLengthRange, toString, values, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayOf, arrayOf, arrayOf, contains, containsObject, select, selectValue, valueOfpublic EmailDomain()
public EmailDomain(int maxLength)
protected void initLengthRange()
initLengthRange in class SequenceDomain<String>public void setLengthRange(Integer length)
setLengthRange in class SequenceDomain<String>public void setLengthRange(Integer min, Integer max)
setLengthRange in class SequenceDomain<String>protected DataValue<String> dataValueOf(String value)
DataValue for the given value in this domain.dataValueOf in class AbstractStringDomainpublic boolean contains(String value)
contains in interface ValueDomain<String>contains in class SequenceDomain<String>public static boolean isEmail(String value)
protected String newValue(ResolverContext context, int length)
newValue in class AbstractStringDomainCopyright © 2020 The Cornutum Project. All rights reserved.