com.revusky.oreo.metadata
Class URLField

java.lang.Object
  |
  +--com.revusky.oreo.metadata.Field
        |
        +--com.revusky.oreo.metadata.StringField
              |
              +--com.revusky.oreo.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

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
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 com.revusky.oreo.metadata.StringField
convertFromJDBC, decodeMultiLineString, encodeMultiLineString, getCopy, getJavaType, getObjectFromString, init, 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

URLField

public URLField()
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

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.)
Overrides:
normalize in class StringField
Following copied from interface: com.revusky.oreo.FieldDescriptor
Returns:
the "normalized" string