REPOSITORY paragraph

The REPOSITORY paragraph is used in a program or class definition to identify all the object-oriented classes that are intended to be referenced in that program or class definition. Optionally, the REPOSITORY paragraph defines associations between class-names and external class-names.

Format: REPOSITORY paragraph

Read syntax diagramSkip visual syntax diagramREPOSITORY. CLASSclass-name-1ISexternal-class-name-1java-array-class-reference
class-name-1
A user-defined word that identifies the class.
external-class-name-1
An alphanumeric literal containing a name that enables a COBOL program to define or access classes with class-names that are defined using Java™ rules of formation.

The name must conform to the rules of formation for a fully qualified Java class-name. If the class is part of a Java package, external-class-name-1 must specify the fully qualified name of the package, followed by a period, followed by the simple name of the Java class.

See Java Language Specification, Third Edition, by Gosling et al., for Java class-name formation rules.

java-array-class-reference
A reference that enables a COBOL program to access a class that represents an array object, where the elements of the array are themselves objects. java-array-class-reference must be an alphanumeric literal with content in the following format:

Format

Read syntax diagramSkip visual syntax diagramjobjectArray:external-class-name-2
jobjectArray
Specifies a Java object array class.
:
A required separator when external-class-name-2 is specified. The colon must not be preceded or followed by space characters.
external-class-name-2
The external class-name of the type of the elements of the array. external-class-name-2 must follow the same rules of formation as external-class-name-1.

When the repository entry specifies jobjectArray without the colon separator and external-class-name-2, the elements of the object array are of type java.lang.Object.