com.legstar.coxb
Enum CobolType

java.lang.Object
  extended by java.lang.Enum<CobolType>
      extended by com.legstar.coxb.CobolType
All Implemented Interfaces:
Serializable, Comparable<CobolType>

public enum CobolType
extends Enum<CobolType>

This is the list of all the cobol item types that are supported.

Author:
Fady Moussallam

Enum Constant Summary
ALPHABETIC_ITEM
          Contains only alphabetic characters.
ALPHANUMERIC_EDITED_ITEM
          An alphanumeric string with editing characters.
ALPHANUMERIC_ITEM
          An alphanumeric string.
BINARY_ITEM
          A binary item with fixed number of digits.
DBCS_ITEM
          A DBCS character string.
DOUBLE_FLOAT_ITEM
          An 8 bytes hexadecimal floating point numeric.
EXTERNAL_FLOATING_ITEM
          A string of characters representing a floating point numeric.
FUNC_POINTER_ITEM
          An pointer to a function.
GROUP_ITEM
          A complex element.
INDEX_ITEM
          An array index.
NATIONAL_ITEM
          A UTF-16 character string.
NATIVE_BINARY_ITEM
          A binary item .
NUMERIC_EDITED_ITEM
          A numeric string with editing characters.
OBJECT_ITEM
          A reference to an object.
OCTET_STREAM_ITEM
          A string of binary data (not translated).
PACKED_DECIMAL_ITEM
          An packed decimal numeric.
POINTER_ITEM
          An pointer to a memory location.
PROC_POINTER_ITEM
          An pointer to a procedure.
SINGLE_FLOAT_ITEM
          A 4 bytes hexadecimal floating point numeric.
ZONED_DECIMAL_ITEM
          A string of digits also known as zoned decimal.
 
Method Summary
static CobolType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CobolType[] 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

GROUP_ITEM

public static final CobolType GROUP_ITEM
A complex element.


ALPHABETIC_ITEM

public static final CobolType ALPHABETIC_ITEM
Contains only alphabetic characters.


NATIONAL_ITEM

public static final CobolType NATIONAL_ITEM
A UTF-16 character string.


DBCS_ITEM

public static final CobolType DBCS_ITEM
A DBCS character string.


ALPHANUMERIC_EDITED_ITEM

public static final CobolType ALPHANUMERIC_EDITED_ITEM
An alphanumeric string with editing characters.


ALPHANUMERIC_ITEM

public static final CobolType ALPHANUMERIC_ITEM
An alphanumeric string.


OCTET_STREAM_ITEM

public static final CobolType OCTET_STREAM_ITEM
A string of binary data (not translated).


SINGLE_FLOAT_ITEM

public static final CobolType SINGLE_FLOAT_ITEM
A 4 bytes hexadecimal floating point numeric.


DOUBLE_FLOAT_ITEM

public static final CobolType DOUBLE_FLOAT_ITEM
An 8 bytes hexadecimal floating point numeric.


PACKED_DECIMAL_ITEM

public static final CobolType PACKED_DECIMAL_ITEM
An packed decimal numeric.


ZONED_DECIMAL_ITEM

public static final CobolType ZONED_DECIMAL_ITEM
A string of digits also known as zoned decimal.


NUMERIC_EDITED_ITEM

public static final CobolType NUMERIC_EDITED_ITEM
A numeric string with editing characters.


INDEX_ITEM

public static final CobolType INDEX_ITEM
An array index.


POINTER_ITEM

public static final CobolType POINTER_ITEM
An pointer to a memory location.


PROC_POINTER_ITEM

public static final CobolType PROC_POINTER_ITEM
An pointer to a procedure.


FUNC_POINTER_ITEM

public static final CobolType FUNC_POINTER_ITEM
An pointer to a function.


OBJECT_ITEM

public static final CobolType OBJECT_ITEM
A reference to an object.


EXTERNAL_FLOATING_ITEM

public static final CobolType EXTERNAL_FLOATING_ITEM
A string of characters representing a floating point numeric.


BINARY_ITEM

public static final CobolType BINARY_ITEM
A binary item with fixed number of digits.


NATIVE_BINARY_ITEM

public static final CobolType NATIVE_BINARY_ITEM
A binary item .

Method Detail

values

public static CobolType[] 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 (CobolType c : CobolType.values())
    System.out.println(c);

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

valueOf

public static CobolType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015 LegSem. All Rights Reserved.