tle.framework.component.impl.rp.validator
Class MinLenValidator

java.lang.Object
  extended bytle.framework.component.impl.rp.validator.MinLenValidator
All Implemented Interfaces:
Validator

public class MinLenValidator
extends java.lang.Object
implements Validator

ÆÄ¶ó¹ÌÅÍ °ªÀÌ ÃÖ¼Ò ±æÀ̺¸´Ù Å©°Å³ª °°ÀºÁöÀÇ ¿©ºÎ¸¦ °Ë»çÇÑ´Ù.

Since:
2.0.5
Author:
ÃÖ¹ü±Õ

Constructor Summary
MinLenValidator()
           
 
Method Summary
 boolean test(java.lang.String[] parameterValues, java.lang.String constraint)
          ÀԷ¹ÞÀº ÆÄ¶ó¹ÌÅÍ °ªÀÇ ±æÀ̰¡ constraint °ªº¸´Ù Å©°Å³ª °°Àº °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinLenValidator

public MinLenValidator()
Method Detail

test

public boolean test(java.lang.String[] parameterValues,
                    java.lang.String constraint)
ÀԷ¹ÞÀº ÆÄ¶ó¹ÌÅÍ °ªÀÇ ±æÀ̰¡ constraint °ªº¸´Ù Å©°Å³ª °°Àº °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÑ´Ù.

¸¸¾à constraint °ª µÚ¿¡ 'b'³ª 'B'°¡ ºÙÀ¸¸é ¹ÙÀÌÆ® ´ÜÀ§·Î ±æÀ̸¦ °è»êÇÑ´Ù.

constraint °ªÀÌ nullÀ̰ųª ""ÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

paramterValues°¡ null À̰ųª paramterValuesÀÇ ±æÀ̰¡ 0 À̰ųª paramterValues[0]ÀÇ °ªÀÌ null ¶Ç´Â ""ÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
test in interface Validator
Parameters:
parameterValues - ÆÄ¶ó¹ÌÅÍ °ª
constraint - °ªÀÇ Á¦¾à Á¶°Ç
Returns:
ÆÄ¶ó¹ÌÅÍ °ªÀÌ Á¦¾àÁ¶°ÇÀ» ¸¸Á·ÇÒ °æ¿ì true
See Also:
Validator.test(java.lang.String[], java.lang.String)