com.revusky.oreo.metadata
Class EmailField

java.lang.Object
  |
  +--com.revusky.oreo.metadata.Field
        |
        +--com.revusky.oreo.metadata.StringField
              |
              +--com.revusky.oreo.metadata.EmailField
All Implemented Interfaces:
FieldDescriptor, java.io.Serializable

public class EmailField
extends StringField

A trivial subclass of StringField for handling the validity checking email addresses. This class only checks whether the input string is a well-formed email address according to the rules set up. It does not do DNS lookup to check whether the domain in question actually exists or any of that.

Author:
Jonathan Revusky
See Also:
Serialized Form

Fields inherited from class com.revusky.oreo.metadata.StringField
regexp, regexpString
 
Fields inherited from class com.revusky.oreo.metadata.Field
defaultValueString, properties, sqlType
 
Constructor Summary
EmailField()
           
 
Method Summary
 void checkValidValue(Record rec, java.lang.Object value)
          Check whether this object is a valid value for this field of the given record.
 
Methods inherited from class com.revusky.oreo.metadata.StringField
convertFromJDBC, decodeMultiLineString, encodeMultiLineString, getCopy, getJavaType, getObjectFromString, init, normalize, processProperties, valueToString
 
Methods inherited from class com.revusky.oreo.metadata.Field
defaultValue, getLocalizedName, getName, getProperty, getSQLType, hashCode, isFieldOf, isRequired, processDefaultValue, processNormalization, setDefaultValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmailField

public EmailField()
Method Detail

checkValidValue

public void checkValidValue(Record rec,
                            java.lang.Object value)
                     throws java.io.IOException
Description copied from interface: FieldDescriptor
Check whether this object is a valid value for this field of the given record. Used in the core validity checks.
Overrides:
checkValidValue in class StringField
Following copied from interface: com.revusky.oreo.FieldDescriptor
Throws:
java.io.IOException - Description of Exception