public class EmailConstant extends StringConstant
Constructor and Description |
---|
EmailConstant(String value)
Creates a new EmailConstant instance.
|
EmailConstant(String value,
Characters chars)
Creates a new EmailConstant instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
assertEmail(String value)
Reports a failure if the given value is not a valid email string.
|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
String |
getFormat()
Returns the format for values that belong to this domain.
|
void |
setFormat(String format)
Changes the format for values that belong to this domain.
|
contains, getTypes, getValue, toString, values
withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public EmailConstant(String value)
public EmailConstant(String value, Characters chars)
public void setFormat(String format)
setFormat
in class AbstractValueDomain<String>
public String getFormat()
getFormat
in interface ValueDomain<String>
getFormat
in class AbstractValueDomain<String>
protected DataValue<String> dataValueOf(String value)
DataValue
for the given value in this domain.dataValueOf
in class StringConstant
Copyright © 2024 The Cornutum Project. All rights reserved.