DataTypeArray (Micro Focus COBOL Java Class Library)
Keywords: com.microfocus.cobol.lang.DataTypeArray class

Overview | Package | Class | Use | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.microfocus.cobol.lang
Class DataTypeArray

    java.lang.Object
      com.microfocus.cobol.lang.DataTypeArray

All Implemented Interfaces:
  DataType

public class DataTypeArray
extends Object
implements DataType

Container class for Arrays of DataTypes Copyright: Copyright (c) 2002-2003
Company: Micro Focus International Ltd

Since:
  Net Express 4.0, Server Express 4.0
Version:
  3.4, 2/11/03

Constructor Summary
`DataTypeArray()` Construct a array of DataType objects
`DataTypeArray(Object[] elements)` Construct a DataTypeArray given a Object[]

Method Summary
`DataTypeArray` | `add(Object element)` Add a Object to the DataTypeArray Below is a example: `DataTypeArray myArray = new DataTypeArray() .add(firstElement) .add(secondElement);`
`DataTypeArray` | `add(Object[] elements)` Add a set of Objects[] to the DataTypeArray Below is a example: `DataTypeArray myArray = new DataTypeArray() .add(firstArray) .add(secondSecondArray);`
`Object[]` | `getArguments()` Method declaration
`byte[]` | `getBytes()` Returns the byte[] representation of the DataTypeArray
`int` | `getNumberOfElements()` Returns the number of elements in DataTypeArray
`void` | `synchronizeData()` synchronizeData calls all elements synchronizeData() methods inside a DataTypeArray

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DataTypeArray

    public DataTypeArray()
                  throws CobolException

  Construct a array of DataType objects

Throws:
  `CobolException`

### DataTypeArray

    public DataTypeArray(Object[] elements)
                  throws CobolException

  Construct a DataTypeArray given a Object[]

Parameters:
  `elements` -
Throws:
  `CobolException`

Method Detail

### add

    public DataTypeArray add(Object[] elements)
                      throws CobolException

  Add a set of Objects[] to the DataTypeArray
  Below is a example:
  `DataTypeArray myArray = new DataTypeArray() .add(firstArray) .add(secondSecondArray);`

  Parameters:
    `elements` -
  Returns:
    DataTypeArray
  Throws:
    `CobolException`

### add

    public DataTypeArray add(Object element)

  Add a Object to the DataTypeArray
  Below is a example:
  `DataTypeArray myArray = new DataTypeArray() .add(firstElement) .add(secondElement);`

  Parameters:
    `element` -
  Returns:
    DataTypeArray

### getNumberOfElements

    public int getNumberOfElements()

  Returns the number of elements in DataTypeArray

  Returns:
    a integer

### getArguments

    public Object[] getArguments()

  Method declaration

  Returns:

### getBytes

    public byte[] getBytes()
                    throws CobolException,
                           Exception

  Returns the byte[] representation of the DataTypeArray

  Specified by:
    `getBytes` in interface `DataType`
  Returns:
    a byte[]
  Throws:
    `CobolException`
    `Exception`

### synchronizeData

    public void synchronizeData()
                         throws CobolException,
                                Exception

  synchronizeData calls all elements synchronizeData() methods inside a DataTypeArray

  Specified by:
    `synchronizeData` in interface `DataType`
  Throws:
    `CobolException`
    `Exception`

Overview | Package | Class | Use | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ? 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.