com.ibm.portal.streaming.json.xml
Enum JsonSchema.TYPE

java.lang.Object
  extended by java.lang.Enum<JsonSchema.TYPE>
      extended by com.ibm.portal.streaming.json.xml.JsonSchema.TYPE
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JsonSchema.TYPE>
Enclosing interface:
JsonSchema

public static enum JsonSchema.TYPE
extends java.lang.Enum<JsonSchema.TYPE>

Enumeration that identifies the data type of a member


Enum Constant Summary
BOOLEAN
          represented as a boolean true or false
DATE
          represented as a date
DOUBLE
          represented as a floating point number
LONG
          represented as an integer number
NULL
          all content is ignored, to be represented as JSON null
QNAME
          the value is represented as ns:value, will be transfered as {ns-uri}value
STRING
          represented as a string number
URI
          represented as a URI.
 
Method Summary
static JsonSchema.TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JsonSchema.TYPE[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NULL

public static final JsonSchema.TYPE NULL
all content is ignored, to be represented as JSON null


LONG

public static final JsonSchema.TYPE LONG
represented as an integer number


DOUBLE

public static final JsonSchema.TYPE DOUBLE
represented as a floating point number


STRING

public static final JsonSchema.TYPE STRING
represented as a string number


DATE

public static final JsonSchema.TYPE DATE
represented as a date


URI

public static final JsonSchema.TYPE URI
represented as a URI. The JSON representation is a string but the URI will be resolved wrt to xml:base tags


BOOLEAN

public static final JsonSchema.TYPE BOOLEAN
represented as a boolean true or false


QNAME

public static final JsonSchema.TYPE QNAME
the value is represented as ns:value, will be transfered as {ns-uri}value

Since:
8.0
Method Detail

values

public static JsonSchema.TYPE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JsonSchema.TYPE c : JsonSchema.TYPE.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JsonSchema.TYPE valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null