# MethodEnum.java

    /*
    ** Module   : MethodEnum.java
    ** Abstract : Implementation of the builtin class.
    **
    ** Copyright (c) 2019-2021, Golden Code Development Corporation.
    **
    ** -#- -I- --Date-- -------------------------------Description--------------------------------
    ** 001 ME  20200511 First version, stubs taken by converting the skeleton using FWD.
    **         20200731 Use enum values.
    ** 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.net.http;

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

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

    /**
     * Business logic (converted to Java from the 4GL source code
     * in OpenEdge/Net/HTTP/MethodEnum.cls).
     */
    @LegacyResource(resource = "OpenEdge.Net.HTTP.MethodEnum")
    @LegacyResourceSupport(supportLvl = CVT_LVL_FULL | RT_LVL_FULL)
    public final class MethodEnum extends LegacyEnum
    {
       @LegacySignature(type = Type.VARIABLE, name = "INVALID")
       public static final object<? extends MethodEnum> invalid;

       @LegacySignature(type = Type.VARIABLE, name = "GET")
       public static final object<? extends MethodEnum> get;

       @LegacySignature(type = Type.VARIABLE, name = "HEAD")
       public static final object<? extends MethodEnum> head;

       @LegacySignature(type = Type.VARIABLE, name = "POST")
       public static final object<? extends MethodEnum> post;

       @LegacySignature(type = Type.VARIABLE, name = "PUT")
       public static final object<? extends MethodEnum> put;

       @LegacySignature(type = Type.VARIABLE, name = "PATCH")
       public static final object<? extends MethodEnum> patch;

       @LegacySignature(type = Type.VARIABLE, name = "DELETE")
       public static final object<? extends MethodEnum> delete;

       @LegacySignature(type = Type.VARIABLE, name = "TRACE")
       public static final object<? extends MethodEnum> trace;

       @LegacySignature(type = Type.VARIABLE, name = "OPTIONS")
       public static final object<? extends MethodEnum> options;

       @LegacySignature(type = Type.VARIABLE, name = "LINK")
       public static final object<? extends MethodEnum> link;

       @LegacySignature(type = Type.VARIABLE, name = "UNLINK")
       public static final object<? extends MethodEnum> unlink;

       @LegacySignature(type = Type.VARIABLE, name = "LOCK")
       public static final object<? extends MethodEnum> lock;

       @LegacySignature(type = Type.VARIABLE, name = "UNLOCK")
       public static final object<? extends MethodEnum> unlock;

       @LegacySignature(type = Type.VARIABLE, name = "PROPFIND")
       public static final object<? extends MethodEnum> propfind;

       @LegacySignature(type = Type.VARIABLE, name = "PROPPATCH")
       public static final object<? extends MethodEnum> proppatch;

       @LegacySignature(type = Type.VARIABLE, name = "MKCOL")
       public static final object<? extends MethodEnum> mkcol;

       @LegacySignature(type = Type.VARIABLE, name = "COPY")
       public static final object<? extends MethodEnum> copy;

       @LegacySignature(type = Type.VARIABLE, name = "MOVE")
       public static final object<? extends MethodEnum> move;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_0")
       public static final object<? extends MethodEnum> ext0;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_1")
       public static final object<? extends MethodEnum> ext1;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_2")
       public static final object<? extends MethodEnum> ext2;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_3")
       public static final object<? extends MethodEnum> ext3;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_4")
       public static final object<? extends MethodEnum> ext4;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_5")
       public static final object<? extends MethodEnum> ext5;

       @LegacySignature(type = Type.VARIABLE, name = "EXT_6")
       public static final object<? extends MethodEnum> ext6;

       static
       {
          registerEnum(MethodEnum.class, MethodEnum::new, "OpenEdge.Net.HTTP.MethodEnum");
          invalid = createEnum(MethodEnum.class, "INVALID", -1L);
          get = createEnum(MethodEnum.class, "GET", 0L);
          head = createEnum(MethodEnum.class, "HEAD", 1L);
          post = createEnum(MethodEnum.class, "POST", 2L);
          put = createEnum(MethodEnum.class, "PUT", 3L);
          patch = createEnum(MethodEnum.class, "PATCH", 4L);
          delete = createEnum(MethodEnum.class, "DELETE", 5L);
          trace = createEnum(MethodEnum.class, "TRACE", 6L);
          options = createEnum(MethodEnum.class, "OPTIONS", 7L);
          link = createEnum(MethodEnum.class, "LINK", 8L);
          unlink = createEnum(MethodEnum.class, "UNLINK", 9L);
          lock = createEnum(MethodEnum.class, "LOCK", 10L);
          unlock = createEnum(MethodEnum.class, "UNLOCK", 11L);
          propfind = createEnum(MethodEnum.class, "PROPFIND", 12L);
          proppatch = createEnum(MethodEnum.class, "PROPPATCH", 13L);
          mkcol = createEnum(MethodEnum.class, "MKCOL", 14L);
          copy = createEnum(MethodEnum.class, "COPY", 15L);
          move = createEnum(MethodEnum.class, "MOVE", 16L);
          ext0 = createEnum(MethodEnum.class, "EXT_0", 17L);
          ext1 = createEnum(MethodEnum.class, "EXT_1", 18L);
          ext2 = createEnum(MethodEnum.class, "EXT_2", 19L);
          ext3 = createEnum(MethodEnum.class, "EXT_3", 20L);
          ext4 = createEnum(MethodEnum.class, "EXT_4", 21L);
          ext5 = createEnum(MethodEnum.class, "EXT_5", 22L);
          ext6 = createEnum(MethodEnum.class, "EXT_6", 23L);
       }

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

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

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