org.oreodata.metadata
Class URLField

java.lang.Object
  |
  +--org.oreodata.metadata.Field
        |
        +--org.oreodata.metadata.StringField
              |
              +--org.oreodata.metadata.URLField
All Implemented Interfaces:
FieldDescriptor, java.io.Serializable

public class URLField
extends StringField

Field descriptor that describes a field that must be a valid URL

Author:
Jonathan Revusky
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.oreodata.metadata.StringField
regexp, regexpString
 
Fields inherited from class org.oreodata.metadata.Field
defaultValueString, intern, properties, sqlType
 
Constructor Summary
URLField()
           
 
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.
 java.lang.String normalize(java.lang.String s)
          "normalize" the string passed in.
 
Methods inherited from class org.oreodata.metadata.StringField
convertFromJDBC, decodeMultiLineString, encodeMultiLineString, getCopy, getJavaType, getObjectFromString, init, processProperties, valueToString
 
Methods inherited from class org.oreodata.metadata.Field
convertToJDBC, createSAXHandler, defaultValue, getLocalizedName, getName, getProperty, getSQLType, hashCode, intern, isFieldOf, isRequired, isSetExternally, processDefaultValue, processNormalization, setDefaultValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLField

public URLField()
Method Detail

checkValidValue

public void checkValidValue(Record rec,
                            java.lang.Object value)
                     throws DataException
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.

Specified by:
checkValidValue in interface FieldDescriptor
Overrides:
checkValidValue in class StringField
DataException

normalize

public java.lang.String normalize(java.lang.String s)
Description copied from interface: FieldDescriptor
"normalize" the string passed in. For example, with a case-insensitive string field, this method would return the lower case version of the string (or upper case if that is the "normal" form.)

Specified by:
normalize in interface FieldDescriptor
Overrides:
normalize in class StringField
Returns:
the "normalized" string