org.mmbase.datatypes
Class InternetAddressDataType
java.lang.Object
org.mmbase.core.AbstractDescriptor
org.mmbase.datatypes.BasicDataType<E>
org.mmbase.datatypes.ComparableDataType<String>
org.mmbase.datatypes.StringDataType
org.mmbase.datatypes.InternetAddressDataType
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<DataType<String>>, Descriptor, DataType<String>, LengthDataType<String>, PublicCloneable<AbstractDescriptor>
public class InternetAddressDataType
- extends StringDataType
Validates a value by putting it into InternetAddress.parse(String),
if no exception is caused by that, the value is valid.
- Since:
- MMBase-1.9
- Version:
- $Id: InternetAddressDataType.java 42270 2010-05-26 08:29:38Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.datatypes.StringDataType |
castForPattern, clone, compare, first, getCollator, getComparator, getEnforceStrength, getLength, getMaxLength, getMaxLengthRestriction, getMinLength, getMinLengthRestriction, getPattern, getPatternRestriction, inheritProperties, isPassword, main, setCollator, setMaxLength, setMinLength, setPassword, setPattern, toStringBuilder, toXml, validateCastValueOrNull |
| Methods inherited from class org.mmbase.datatypes.BasicDataType |
addErrorDescription, addRestriction, addRestriction, addStyleClass, cast, cast, castAndValidate, castForSearch, castOrException, castToPresent, castToValidate, checkType, clone, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCloud, getCommitProcessor, getDefaultProcessor, getDefaultValue, getDeleteProcessor, getElement, getElement, getEnforceString, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getProcessorWithoutDefault, getRequiredRestriction, getRestrictions, getStyleClasses, getTypeAsClass, getUniqueRestriction, hashCode, inherit, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, preCast, rewrite, setCommitProcessor, setDefaultProcessor, setDefaultValue, setDeleteProcessor, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toXml, validate, validate, validateRequired, xmlValue |
| Methods inherited from class org.mmbase.core.AbstractDescriptor |
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName |
| Methods inherited from interface org.mmbase.datatypes.DataType |
cast, castAndValidate, castForSearch, castOrException, checkType, clone, finish, getBaseType, getBaseTypeIdentifier, getCommitProcessor, getDefaultValue, getDefaultValue, getDeleteProcessor, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getHandler, getHandlers, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getStyleClasses, getTypeAsClass, getUniqueRestriction, isFinished, isRequired, isUnique, preCast, rewrite, setCommitProcessor, setDefaultValue, setProcessor, setProcessor, setRequired, setUnique, toXml, validate, validate |
| Methods inherited from interface org.mmbase.bridge.Descriptor |
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName |
DATATYPE_BUNDLE
static final String DATATYPE_BUNDLE
- See Also:
- Constant Field Values
restriction
protected InternetAddressDataType.InternetAddressRestriction restriction
InternetAddressDataType
public InternetAddressDataType(String name)
- Constructor for string data type.
- Parameters:
name - the name of the data type
validateCastValue
protected Collection<LocalizedString> validateCastValue(Collection<LocalizedString> errors,
Object castValue,
Object value,
Node node,
Field field)
- Overrides:
validateCastValue in class StringDataType
inheritRestrictions
protected void inheritRestrictions(BasicDataType origin)
- Description copied from class:
BasicDataType
- If a datatype inherits from another datatype all its restrictions inherit too.
- Overrides:
inheritRestrictions in class StringDataType
cloneRestrictions
protected void cloneRestrictions(BasicDataType origin)
- Description copied from class:
BasicDataType
- If a datatype is cloned, the restrictions of it (normally implemented as inner classes), must be reinstantiated.
- Overrides:
cloneRestrictions in class StringDataType
setMaxAddress
public void setMaxAddress(String i)
setLocal
public void setLocal(String l)
setRestrictionEnforceStrength
public void setRestrictionEnforceStrength(String ef)
MMBase 2.0-SNAPSHOT - null