info.informatica.data.field
Class StringField
java.lang.Object
info.informatica.data.field.DataType
info.informatica.data.field.StringField
- Direct Known Subclasses:
- EmailField, PasswordField, UsernameField
public class StringField
- extends DataType
String data field.
- 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, validate |
StringField
public StringField(int dbtype)
StringField
public StringField()
objectValue
public Object objectValue(FieldName varname,
String valor)
throws DataFieldException
- Transforms a String value into the appropriate Java object, parsing as
needed.
- Specified by:
objectValue in class DataType
- Parameters:
valor - the value to be parsed/transformed.
- Throws:
DataFieldException
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 DataType
val - the value to be verified.
- Throws:
DataException - TODO
sample
public Object sample()
- Description copied from class:
DataType
- Provide a sample of this data type. Should be reasonably random.
- Overrides:
sample in class DataType
- Returns:
- the sample, or null if no suitable sample could be produced.