info.informatica.data.field
Class EmailField
java.lang.Object
info.informatica.data.field.DataType
info.informatica.data.field.StringField
info.informatica.data.field.EmailField
public class EmailField
- extends StringField
Data field for RFC821 email address.
- Version:
- 1.01
- Author:
- amengual at informatica dot info
| Methods inherited from class info.informatica.data.field.DataType |
create, createAs, dataType, equals, getDefaultClassName, getFormat, getIntType, getJavaSQLType, getName, getSize, getTypeName, hashCode, setFormat, setJavaSQLType, setSize, toString |
EmailField
public EmailField(int dbtype)
EmailField
public EmailField()
validate
public Object validate(FieldName name,
Object val)
throws DataException
- Description copied from class:
DataType
- validates the
value according to requirements of the Data
Dictionary / Metadata.
- Overrides:
validate in class StringField
val - the value to be verified.
- Throws:
DataException - TODO
validate
public Object validate(FieldName name,
Object email,
Object ctx)
throws DataException
- Validates the
email using the DirContext ctx
JNDI DNS helper object.
- Overrides:
validate in class DataType
- Parameters:
email - the email to be verifiedctx - a JNDI DirContext enabling access to DNS provider
- Returns:
- the validated version of the object (usually the unchanged value
argument).
- Throws:
DataException - TODO
getDomainFromEmail
public static String getDomainFromEmail(String email)
sample
public Object sample()
- Description copied from class:
DataType
- Provide a sample of this data type. Should be reasonably random.
- Overrides:
sample in class StringField
- Returns:
- the sample, or null if no suitable sample could be produced.