org.slim3.struts.validator
Class S3GenericValidator

java.lang.Object
  extended by org.slim3.struts.validator.S3GenericValidator

public class S3GenericValidator
extends Object

The generic validator for Slim3.

Since:
3.0
Author:
Satoshi Kimura, higa

Method Summary
static boolean maxByteLength(String value, int max, String charset)
          Checks if the byte length is less than or equal to the maximum length.
static boolean minByteLength(String value, int min, String charset)
          Checks if the byte length is greater than or equal to the minimum length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

minByteLength

public static boolean minByteLength(String value,
                                    int min,
                                    String charset)
Checks if the byte length is greater than or equal to the minimum length.

Parameters:
value - the value
min - the minimum length
charset - the character set
Returns:
the checked result

maxByteLength

public static boolean maxByteLength(String value,
                                    int max,
                                    String charset)
Checks if the byte length is less than or equal to the maximum length.

Parameters:
value - the value
max - the maximum length
charset - the character set
Returns:
the checked result


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.