com.legstar.coxb
Class CobolUsage

java.lang.Object
  extended by com.legstar.coxb.CobolUsage

public final class CobolUsage
extends Object

These are the COBOL usage attribute that are derived from the original COBOL statement and then propagated as attributes in XML Schema and java annototations.

Author:
Fady Moussallam

Nested Class Summary
static class CobolUsage.Usage
          Usable as java enumeration.
 
Field Summary
static String BINARY
          A binary numeric.
static String COMP_1
          A single float.
static String COMP_2
          A double float.
static String COMP_5
          A native binary numeric.
static String DISPLAY
          An character string.
static String DISPLAY_1
          An double byte character string.
static String FUNCTION_POINTER
          A pointer to a function.
static String INDEX
          An index.
static String NATIONAL
          A UTF16-BE character string.
static String PACKED_DECIMAL
          A packed numeric.
static String POINTER
          A pointer.
static String PROCEDURE_POINTER
          A pointer to a procedure.
 
Method Summary
static String getCobolUsage(CobolUsage.Usage usage)
           
static CobolUsage.Usage getUsage(String cobolUsage)
          Get the java enumeration corresponding to a COBOL usage string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY

public static final String DISPLAY
An character string.

See Also:
Constant Field Values

DISPLAY_1

public static final String DISPLAY_1
An double byte character string.

See Also:
Constant Field Values

NATIONAL

public static final String NATIONAL
A UTF16-BE character string.

See Also:
Constant Field Values

BINARY

public static final String BINARY
A binary numeric.

See Also:
Constant Field Values

COMP_5

public static final String COMP_5
A native binary numeric.

See Also:
Constant Field Values

PACKED_DECIMAL

public static final String PACKED_DECIMAL
A packed numeric.

See Also:
Constant Field Values

COMP_1

public static final String COMP_1
A single float.

See Also:
Constant Field Values

COMP_2

public static final String COMP_2
A double float.

See Also:
Constant Field Values

INDEX

public static final String INDEX
An index.

See Also:
Constant Field Values

POINTER

public static final String POINTER
A pointer.

See Also:
Constant Field Values

PROCEDURE_POINTER

public static final String PROCEDURE_POINTER
A pointer to a procedure.

See Also:
Constant Field Values

FUNCTION_POINTER

public static final String FUNCTION_POINTER
A pointer to a function.

See Also:
Constant Field Values
Method Detail

getCobolUsage

public static String getCobolUsage(CobolUsage.Usage usage)
Parameters:
usage - the java enumeration
Returns:
the Cobol usage clause (as a COBOL string)

getUsage

public static CobolUsage.Usage getUsage(String cobolUsage)
Get the java enumeration corresponding to a COBOL usage string.

Parameters:
cobolUsage - the COBOL usage string
Returns:
the java enumeration


Copyright © 2015 LegSem. All Rights Reserved.