org.mmbase.datatypes
Class ConfirmPasswordDataType
java.lang.Object
org.mmbase.core.AbstractDescriptor
org.mmbase.datatypes.BasicDataType
org.mmbase.datatypes.ComparableDataType
org.mmbase.datatypes.StringDataType
org.mmbase.datatypes.ConfirmPasswordDataType
- All Implemented Interfaces:
- Cloneable, Comparable, DataType, Descriptor, LengthDataType, Serializable
- public class ConfirmPasswordDataType
- extends StringDataType
A confirmed password datatype must have the same value as another field of the node (and makes
only sense as a field of a node).
- Since:
- MMBase-1.8
- Version:
- $Id: ConfirmPasswordDataType.java,v 1.8 2006/04/10 15:23:55 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.datatypes.StringDataType |
getLength, getMaxLength, getMaxLengthRestriction, getMinLength, getMinLengthRestriction, getPattern, getPatternRestriction, inheritProperties, isPassword, main, setMaxLength, setMinLength, setPassword, setPattern, toXml |
| Methods inherited from class org.mmbase.datatypes.BasicDataType |
cast, cast, castToValidate, checkType, clone, compareTo, edit, equals, finish, finish, getBaseType, getBaseTypeIdentifier, getCloud, getCommitProcessor, getElement, getElement, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getTypeAsClass, getUniqueRestriction, hashCode, inherit, isCorrectType, isFinished, isRequired, isUnique, preCast, preCast, preCast, rewrite, setCommitProcessor, setDefaultValue, setProcessor, setProcessor, setRequired, setUnique, setXml, toString, toXml, validate, validate |
| 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, checkType, clone, clone, finish, getBaseType, getBaseTypeIdentifier, getCommitProcessor, getDefaultValue, getEnumerationFactory, getEnumerationRestriction, getEnumerationValue, getEnumerationValues, getOrigin, getProcessor, getProcessor, getRequiredRestriction, getTypeAsClass, getUniqueRestriction, inherit, 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 |
passwordRestriction
protected ConfirmPasswordDataType.PasswordRestriction passwordRestriction
ConfirmPasswordDataType
public ConfirmPasswordDataType(String name)
- Constructor for string data type.
- Parameters:
name - the name of the data type
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
validateCastedValue
protected Collection validateCastedValue(Collection errors,
Object castedValue,
Object value,
Node node,
Field field)
- Overrides:
validateCastedValue in class StringDataType
setField
public void setField(String field)
- The field property is the name of the other password field that this fields 'confirms'. It default to 'password'.
In datatype XML it can be set with the generic <property name="field" value="..." />
getField
public String getField()
- Returns the name of the field which is 'confirmed' by this datatype.
toStringBuffer
protected StringBuffer toStringBuffer()
- Overrides:
toStringBuffer in class StringDataType
MMBase build 1.8.1.20060716