com.threerings.antidote.field
Class RequiredField<F extends ReferenceField>
java.lang.Object
com.threerings.antidote.field.BaseFieldWrapper<F>
com.threerings.antidote.field.RequiredField<F>
- All Implemented Interfaces:
- Field, FieldWrapper<F>, Mutable, RequiresValidation
public class RequiredField<F extends ReferenceField>
- extends BaseFieldWrapper<F>
A FieldWrapper
which wraps a Field
which must be set, e.g. not null.
Method Summary |
void |
validateWrappedField()
Provide subclasses a chance to perform additional validation, including validation of the
wrapped field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequiredField
public RequiredField(F wrapped,
Field parent)
RequiredField
public RequiredField(Class<? extends Field> clazz,
Field parent)
RequiredField
public RequiredField(String abstractName,
Field parent)
validateWrappedField
public void validateWrappedField()
- Description copied from class:
BaseFieldWrapper
- Provide subclasses a chance to perform additional validation, including validation of the
wrapped field.
- Specified by:
validateWrappedField
in class BaseFieldWrapper<F extends ReferenceField>
Copyright © 2007-2008 Three Rings Design, Inc.
All Rights Reserved. Released under a BSD license.