Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


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
Read syntax diagramSkip visual syntax diagram>>-REPOSITORY.--+---------------------------------------------------------------------+-><
                | .-----------------------------------------------------------------. |  
                | V                                                                 | |  
                '---CLASS--class-name-1--+----------------------------------------+-+-'  
                                         '-+----+--+-external-class-name-1------+-'      
                                           '-IS-'  '-java-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 “.”, followed by the simple name of the Java class.

See Java Language Specification, Second 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 diagram>>-jobjectArray--+--------------------------+------------------><
                 '-:--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.

 

Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)