biz.c24.io.api.data
Class WhiteSpaceEnum

java.lang.Object
  extended by biz.c24.io.api.data.WhiteSpaceEnum
All Implemented Interfaces:
Serializable

public final class WhiteSpaceEnum
extends Object
implements Serializable

An enumeration of the valid white space values.

See Also:
The W3C Schema Specification, Serialized Form

Field Summary
static WhiteSpaceEnum COLLAPSE
          Specifies that tabs, carriage returns and line feeds should be replaced by spaces; leading and trailing white space should be deleted; and runs of more than one consecutive space should be condensed to a single space.
static WhiteSpaceEnum PRESERVE
          Specifies that all white space is significant and it will therefore be preserved in its entirety.
static WhiteSpaceEnum REPLACE
          Specifies that tabs, carriage returns and line feeds should be replaced by spaces.
 
Method Summary
static WhiteSpaceEnum[] getEnumArray()
          Returns an array containing the members of this enumeration.
static WhiteSpaceEnum getEnumValue(String name)
          Returns the enumeration value called name.
 String getName()
          Returns the name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRESERVE

public static final WhiteSpaceEnum PRESERVE
Specifies that all white space is significant and it will therefore be preserved in its entirety.


REPLACE

public static final WhiteSpaceEnum REPLACE
Specifies that tabs, carriage returns and line feeds should be replaced by spaces.

This behaviour is applied before any validation takes place.


COLLAPSE

public static final WhiteSpaceEnum COLLAPSE
Specifies that tabs, carriage returns and line feeds should be replaced by spaces; leading and trailing white space should be deleted; and runs of more than one consecutive space should be condensed to a single space.

This behaviour is applied before any validation takes place.

Method Detail

getName

public String getName()
Returns the name.

Returns:
The name.

toString

public String toString()
Overrides:
toString in class Object

getEnumArray

public static WhiteSpaceEnum[] getEnumArray()
Returns an array containing the members of this enumeration.

Returns:
The enumeration as an array.

getEnumValue

public static WhiteSpaceEnum getEnumValue(String name)
Returns the enumeration value called name.

Parameters:
name - The name of the enumeration value to return.
Returns:
The enumeration value or null if none was found.


C24 Technologies © 2002-2012: All Rights Reserved.