BaseValidatorpublic class BaseValidator extends Object implements Serializable, com.sun.enterprise.admin.util.ValidatorOptional base class for all implementations of IValidator. |
Fields Summary |
---|
private static final String | kMustBeNonNull | private static final BaseValidator | sInstance |
Methods Summary |
---|
public static com.sun.enterprise.admin.util.Validator | getInstance()A convenience for any client that needs the default object Validator
(which never changes). It could be used, for example, to invoke
getInstance().validate( object ).
return( sInstance );
| public ValidatorResult | validate(java.lang.Object object)Validate the object by checking for non-null. It is expected
that subclasses will override this behavior but may invoke
super.validate() to make this check.
ValidatorResult result = ValidatorResult.kValid;
if ( object == null )
{
result = new ValidatorResult( false, kMustBeNonNull );
}
return( result );
|
|