com.ivata.mask.web.format
Class CaseFormat

java.lang.Object
  extended bycom.ivata.mask.web.format.CaseFormat
All Implemented Interfaces:
HTMLFormat

public class CaseFormat
extends java.lang.Object
implements HTMLFormat

Convert a string to upper or lower case.

Since:
ivata masks 0.6 (2005-03-15)
Version:
$Revision: 1.1 $
Author:
Colin MacLeod colin.macleod@ivata.com

Constructor Summary
CaseFormat()
           
 
Method Summary
 java.lang.String format(java.lang.String textParam)
          Converts the given text to either upper or lower (default) case, depending on the setting of lower.
 boolean isLower()
          If true, then format will convert to lower case.
 void setLower(boolean lowerParam)
          Refer to isLower().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseFormat

public CaseFormat()
Method Detail

format

public java.lang.String format(java.lang.String textParam)
Converts the given text to either upper or lower (default) case, depending on the setting of lower.

Specified by:
format in interface HTMLFormat
Parameters:
textParam - text to be converted.
Returns:
text with all characters converted to either upper or lower case.

isLower

public boolean isLower()
If true, then format will convert to lower case.

Returns:
Returns true, if format should convert to lower case, otherwise false.

setLower

public void setLower(boolean lowerParam)
Refer to isLower().

Parameters:
lowerParam - Refer to isLower().


Copyright © 2001-2005 ivata limited. All Rights Reserved.