org.jutil.validation
Class StringNotEmpty

java.lang.Object
  extended by org.jutil.validation.StringNotEmpty
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, VersionedObject, Validator

public class StringNotEmpty
extends java.lang.Object
implements Validator, java.io.Externalizable

See Also:
Serialized Form

Field Summary
static java.lang.String ERR_MSG
           
 
Constructor Summary
StringNotEmpty()
           
 
Method Summary
 java.lang.String getError()
           
 Version getVersion()
          Overide the superclass getVersion() to return this sub classe's Version
 void readExternal(java.io.ObjectInput in)
           
 boolean validate(java.lang.Object obj)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERR_MSG

public static final java.lang.String ERR_MSG
See Also:
Constant Field Values
Constructor Detail

StringNotEmpty

public StringNotEmpty()
Method Detail

validate

public boolean validate(java.lang.Object obj)
Specified by:
validate in interface Validator

getError

public java.lang.String getError()
Specified by:
getError in interface Validator

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getVersion

public Version getVersion()
Overide the superclass getVersion() to return this sub classe's Version

Specified by:
getVersion in interface VersionedObject