OpenAPI 1.0

com.aquafold.openapi.type
Interface AQStringFactory


public interface AQStringFactory

This interface provides manipulation and validation functionality for String data type.

An instance of this interface is available via aqua.type.string alias.


Method Summary
 boolean isBlank(Object string)
          Returns true if the specified string is blank (null, empty string, or contains only whitespace).
 boolean isNotBlank(Object string)
          Returns true if the specified string is not blank.
 boolean isShorterThan(Object string, int max)
          Returns true if the length of the specified string is less than the supplied value.
 String trim(Object string)
          Trims whitespace on both ends of the specified string.
 String trimLeft(Object string)
          Trims left (leading) whitespace.
 String trimRight(Object string)
          Trims right (trailing) whitespace.
 

Method Detail

isBlank

boolean isBlank(Object string)
Returns true if the specified string is blank (null, empty string, or contains only whitespace).

Parameters:
string -

isNotBlank

boolean isNotBlank(Object string)
Returns true if the specified string is not blank.

Parameters:
string -

trimLeft

String trimLeft(Object string)
Trims left (leading) whitespace.

Parameters:
string -

trimRight

String trimRight(Object string)
Trims right (trailing) whitespace.

Parameters:
string -

trim

String trim(Object string)
Trims whitespace on both ends of the specified string.

Parameters:
string -

isShorterThan

boolean isShorterThan(Object string,
                      int max)
Returns true if the length of the specified string is less than the supplied value.

Parameters:
string -
max -

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.