com.ibm.zosconnect.buildtoolkit
Enum BindfileGenerator.CharVarying
- java.lang.Object
-
- java.lang.Enum<BindfileGenerator.CharVarying>
-
- com.ibm.zosconnect.buildtoolkit.BindfileGenerator.CharVarying
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BindfileGenerator.CharVarying>
- Enclosing class:
- BindfileGenerator
public static enum BindfileGenerator.CharVarying extends java.lang.Enum<BindfileGenerator.CharVarying>
Specifies how character fields in the language structures are mapped. A character field in COBOL is a Picture clause of type X, for example PIC(X) 10; a character field in C/C++ is a character array.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description BINARY
Character fields are mapped to a JSON string containing base64 encoded data and are processed as fixed-length fields.COLLAPSE
Character fields are mapped to a JSON string.NO
Character fields are mapped to a JSON string and are processed as fixed-length fields.NULL
Character fields are mapped to a JSON string and are processed as null-terminated strings.YES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static BindfileGenerator.CharVarying
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BindfileGenerator.CharVarying[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO
public static final BindfileGenerator.CharVarying NO
Character fields are mapped to a JSON string and are processed as fixed-length fields. The maximum length of the data is equal to the length of the field. This value does not apply to Enterprise and Other PL/I language structures.
-
NULL
public static final BindfileGenerator.CharVarying NULL
Character fields are mapped to a JSON string and are processed as null-terminated strings. z/OS Connect EE adds a terminating null character when transforming from a JSON payload. The maximum length of the character string is calculated as one character less than the length indicated in the language structure. NULL is the default value forBindfileGenerator.CharVarying
for C and C++. This value does not apply to Enterprise and Other PL/I language structures.
-
COLLAPSE
public static final BindfileGenerator.CharVarying COLLAPSE
Character fields are mapped to a JSON string. Trailing white space in the field is not included in the JSON payload. The request JSON payload is parsed to remove all leading, trailing, and embedded white space. COLLAPSE is the default value forBindfileGenerator.CharVarying
for COBOL and PL/I.
-
BINARY
public static final BindfileGenerator.CharVarying BINARY
Character fields are mapped to a JSON string containing base64 encoded data and are processed as fixed-length fields.
-
YES
public static final BindfileGenerator.CharVarying YES
-
-
Method Detail
-
values
public static BindfileGenerator.CharVarying[] 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 (BindfileGenerator.CharVarying c : BindfileGenerator.CharVarying.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BindfileGenerator.CharVarying 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 namejava.lang.NullPointerException
- if the argument is null
-
-