IomodeEnum.java

/*
** Module   : IOModeEnum.java
** Abstract : Implementation of the OpenEdge.Core.IOModeEnum builtin class.
**
** Copyright (c) 2019-2021, Golden Code Development Corporation.
**
** -#- -I- --Date-- -------------------------------Description--------------------------------
** 001 ME  20200730 Added by converting skeleton (OE12.2).
** 002 CA  20210221 Fixed 'qualified', 'extent' and 'returns' annotations at the legacy
**                  signature.
*/

/*
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU Affero General Public License as
** published by the Free Software Foundation, either version 3 of the
** License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU Affero General Public License for more details.
**
** You may find a copy of the GNU Affero GPL version 3 at the following
** location: https://www.gnu.org/licenses/agpl-3.0.en.html
**
** Additional terms under GNU Affero GPL version 3 section 7:
**
**   Under Section 7 of the GNU Affero GPL version 3, the following additional
**   terms apply to the works covered under the License.  These additional terms
**   are non-permissive additional terms allowed under Section 7 of the GNU
**   Affero GPL version 3 and may not be removed by you.
**
**   0. Attribution Requirement.
**
**     You must preserve all legal notices or author attributions in the covered
**     work or Appropriate Legal Notices displayed by works containing the covered
**     work.  You may not remove from the covered work any author or developer
**     credit already included within the covered work.
**
**   1. No License To Use Trademarks.
**
**     This license does not grant any license or rights to use the trademarks
**     Golden Code, FWD, any Golden Code or FWD logo, or any other trademarks
**     of Golden Code Development Corporation. You are not authorized to use the
**     name Golden Code, FWD, or the names of any author or contributor, for
**     publicity purposes without written authorization.
**
**   2. No Misrepresentation of Affiliation.
**
**     You may not represent yourself as Golden Code Development Corporation or FWD.
**
**     You may not represent yourself for publicity purposes as associated with
**     Golden Code Development Corporation, FWD, or any author or contributor to
**     the covered work, without written authorization.
**
**   3. No Misrepresentation of Source or Origin.
**
**     You may not represent the covered work as solely your work.  All modified
**     versions of the covered work must be marked in a reasonable way to make it
**     clear that the modified work is not originating from Golden Code Development
**     Corporation or FWD.  All modified versions must contain the notices of
**     attribution required in this license.
*/
package com.goldencode.p2j.oo.core;

import com.goldencode.p2j.util.*;
import com.goldencode.p2j.oo.lang.*;

import static com.goldencode.p2j.report.ReportConstants.*;
import static com.goldencode.p2j.util.InternalEntry.Type;

/**
 * Business logic (converted to Java from the 4GL source code
 * in skeleton/oo4gl/OpenEdge/Core/IOModeEnum.cls).
 */
@LegacyResource(resource = "OpenEdge.Core.IOModeEnum")
@LegacyResourceSupport(supportLvl = CVT_LVL_FULL | RT_LVL_FULL)
public final class IomodeEnum
extends FlagsEnum
{
   @LegacySignature(type = Type.VARIABLE, name = "Input")
   public static final object<? extends IomodeEnum> input;

   @LegacySignature(type = Type.VARIABLE, name = "Default")
   public static final object<? extends IomodeEnum> default_;

   @LegacySignature(type = Type.VARIABLE, name = "Output")
   public static final object<? extends IomodeEnum> output;

   @LegacySignature(type = Type.VARIABLE, name = "Input-Output")
   public static final object<? extends IomodeEnum> inputOutput;

   @LegacySignature(type = Type.VARIABLE, name = "InputOutput")
   public static final object<? extends IomodeEnum> inputOutput_2;

   @LegacySignature(type = Type.VARIABLE, name = "Return")
   public static final object<? extends IomodeEnum> return_;

   @LegacySignature(type = Type.VARIABLE, name = "Append")
   public static final object<? extends IomodeEnum> append;

   @LegacySignature(type = Type.VARIABLE, name = "Output-Append")
   public static final object<? extends IomodeEnum> outputAppend;

   @LegacySignature(type = Type.VARIABLE, name = "OutputAppend")
   public static final object<? extends IomodeEnum> outputAppend_2;

   @LegacySignature(type = Type.VARIABLE, name = "Bind")
   public static final object<? extends IomodeEnum> bind;

   @LegacySignature(type = Type.VARIABLE, name = "Input-Bind")
   public static final object<? extends IomodeEnum> inputBind;

   @LegacySignature(type = Type.VARIABLE, name = "InputBind")
   public static final object<? extends IomodeEnum> inputBind_2;

   @LegacySignature(type = Type.VARIABLE, name = "Output-Bind")
   public static final object<? extends IomodeEnum> outputBind;

   @LegacySignature(type = Type.VARIABLE, name = "OutputBind")
   public static final object<? extends IomodeEnum> outputBind_2;

   @LegacySignature(type = Type.VARIABLE, name = "By-Reference")
   public static final object<? extends IomodeEnum> byReference;

   @LegacySignature(type = Type.VARIABLE, name = "ByReference")
   public static final object<? extends IomodeEnum> byReference_2;

   @LegacySignature(type = Type.VARIABLE, name = "Input-By-Reference")
   public static final object<? extends IomodeEnum> inputByReference;

   @LegacySignature(type = Type.VARIABLE, name = "InputByReference")
   public static final object<? extends IomodeEnum> inputByReference_2;

   @LegacySignature(type = Type.VARIABLE, name = "Output-By-Reference")
   public static final object<? extends IomodeEnum> outputByReference;

   @LegacySignature(type = Type.VARIABLE, name = "OutputByReference")
   public static final object<? extends IomodeEnum> outputByReference_2;

   @LegacySignature(type = Type.VARIABLE, name = "Input-Output-By-Reference")
   public static final object<? extends IomodeEnum> inputOutputByReference;

   @LegacySignature(type = Type.VARIABLE, name = "InputOutputByReference")
   public static final object<? extends IomodeEnum> inputOutputByReference_2;

   @LegacySignature(type = Type.VARIABLE, name = "By-Value")
   public static final object<? extends IomodeEnum> byValue;

   @LegacySignature(type = Type.VARIABLE, name = "ByValue")
   public static final object<? extends IomodeEnum> byValue_2;

   @LegacySignature(type = Type.VARIABLE, name = "Table")
   public static final object<? extends IomodeEnum> table;

   @LegacySignature(type = Type.VARIABLE, name = "Table-Handle")
   public static final object<? extends IomodeEnum> tableHandle;

   @LegacySignature(type = Type.VARIABLE, name = "TableHandle")
   public static final object<? extends IomodeEnum> tableHandle_2;

   @LegacySignature(type = Type.VARIABLE, name = "Dataset")
   public static final object<? extends IomodeEnum> dataset;

   @LegacySignature(type = Type.VARIABLE, name = "Dataset-Handle")
   public static final object<? extends IomodeEnum> datasetHandle;

   @LegacySignature(type = Type.VARIABLE, name = "DatasetHandle")
   public static final object<? extends IomodeEnum> datasetHandle_2;

   @LegacySignature(type = Type.VARIABLE, name = "Buffer")
   public static final object<? extends IomodeEnum> buffer;

   static
   {
      registerEnum(IomodeEnum.class, IomodeEnum::new, "OpenEdge.Core.IOModeEnum");
      
      input = createEnum(IomodeEnum.class, "Input", 1L);
      default_ = createEnum(IomodeEnum.class, "Default", 1L);
      output = createEnum(IomodeEnum.class, "Output", 2L);
      inputOutput = createEnum(IomodeEnum.class, "Input-Output", 3L);
      inputOutput_2 = createEnum(IomodeEnum.class, "InputOutput", 3L);
      return_ = createEnum(IomodeEnum.class, "Return", 4L);
      append = createEnum(IomodeEnum.class, "Append", 8L);
      outputAppend = createEnum(IomodeEnum.class, "Output-Append", 10L);
      outputAppend_2 = createEnum(IomodeEnum.class, "OutputAppend", 10L);
      bind = createEnum(IomodeEnum.class, "Bind", 16L);
      inputBind = createEnum(IomodeEnum.class, "Input-Bind", 17L);
      inputBind_2 = createEnum(IomodeEnum.class, "InputBind", 17L);
      outputBind = createEnum(IomodeEnum.class, "Output-Bind", 18L);
      outputBind_2 = createEnum(IomodeEnum.class, "OutputBind", 18L);
      byReference = createEnum(IomodeEnum.class, "By-Reference", 32L);
      byReference_2 = createEnum(IomodeEnum.class, "ByReference", 32L);
      inputByReference = createEnum(IomodeEnum.class, "Input-By-Reference", 33L);
      inputByReference_2 = createEnum(IomodeEnum.class, "InputByReference", 33L);
      outputByReference = createEnum(IomodeEnum.class, "Output-By-Reference", 34L);
      outputByReference_2 = createEnum(IomodeEnum.class, "OutputByReference", 34L);
      inputOutputByReference = createEnum(IomodeEnum.class, "Input-Output-By-Reference", 35L);
      inputOutputByReference_2 = createEnum(IomodeEnum.class, "InputOutputByReference", 35L);
      byValue = createEnum(IomodeEnum.class, "By-Value", 64L);
      byValue_2 = createEnum(IomodeEnum.class, "ByValue", 64L);
      table = createEnum(IomodeEnum.class, "Table", 64L);
      tableHandle = createEnum(IomodeEnum.class, "Table-Handle", 128L);
      tableHandle_2 = createEnum(IomodeEnum.class, "TableHandle", 128L);
      dataset = createEnum(IomodeEnum.class, "Dataset", 256L);
      datasetHandle = createEnum(IomodeEnum.class, "Dataset-Handle", 512L);
      datasetHandle_2 = createEnum(IomodeEnum.class, "DatasetHandle", 512L);
      buffer = createEnum(IomodeEnum.class, "Buffer", 1024L);
   }

   private IomodeEnum(final String name, final Long value)
   {
      super(name, value);
   }

   @LegacySignature(returns = "OBJECT", type = Type.METHOD, name = "GetEnum", qualified = "openedge.core.iomodeenum", parameters = 
   {
      @LegacyParameter(name = "val", type = "INT64", mode = "INPUT")
   })
   @LegacyResourceSupport(supportLvl = CVT_LVL_FULL | RT_LVL_FULL)
   public static object<IomodeEnum> getEnum(int64 val)
   {
      return getEnum(IomodeEnum.class, val);
   }

   @LegacySignature(returns = "OBJECT", type = Type.METHOD, name = "GetEnum", qualified = "openedge.core.iomodeenum", parameters = 
   {
      @LegacyParameter(name = "val", type = "CHARACTER", mode = "INPUT")
   })
   @LegacyResourceSupport(supportLvl = CVT_LVL_FULL | RT_LVL_FULL)
   public static object<IomodeEnum> getEnum(character val)
   {
      return getEnum(IomodeEnum.class, val);
   }
}