blob: 32f409599bfbab67a65133e58eb69ad1f8ec687b [file] [log] [blame]
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.internal.eis.cobol;
import java.util.*;
/**
* <b>Purpose</b>: This interface defines api for composite fields/records. It exists so that
* a composite object can be referred to generically within the parser.
*/
public interface CompositeObject {
/** this method returns the name of the object */
String getName();
/** this method returns a Vector of fields that the object contains */
Vector<FieldMetaData> getFields();
/** this method sets the fields to the new values */
void setFields(Vector<FieldMetaData> fields);
/** this method adds a field to the fields Vector */
void addField(FieldMetaData field);
/** this method returns a field, if such a field exists, by the given name */
FieldMetaData getFieldNamed(String fieldName);
}