/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.wsdm.method;

import com.l7tech.server.wsdm.faults.InvalidResourcePropertyQNameFault;
import java.util.logging.Logger;

public class ResourceProperty {
    public static final ResourceProperty RESOURCE_ID;
    public static final ResourceProperty CURRENT_TIME;
    public static final ResourceProperty OPERATIONAL_STATUS;
    public static final ResourceProperty NUMBER_OF_REQUESTS;
    public static final ResourceProperty NUMBER_OF_FAILEDREQUESTS;
    public static final ResourceProperty NUMBER_OF_SUCCESSFULREQUESTS;
    public static final ResourceProperty SERVICE_TIME;
    public static final ResourceProperty MAX_RESPONSETIME;
    public static final ResourceProperty LAST_RESPONSETIME;
    public static final ResourceProperty THROUGHPUT;
    public static final ResourceProperty FAULTRATE;
    public static final ResourceProperty AVG_RESPONSETIME;
    public static final ResourceProperty MANAGEABILITY_CAPABILITY;
    public static final ResourceProperty TOPIC;
    private static Logger a;
    private String b;
    private boolean c;
    private static final String[] d;

    public static ResourceProperty fromValue(String string) throws InvalidResourcePropertyQNameFault {
        try {
            if (string == null) {
                return null;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.RESOURCE_ID.b)) {
                return RESOURCE_ID;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.CURRENT_TIME.b)) {
                return CURRENT_TIME;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.OPERATIONAL_STATUS.b)) {
                return OPERATIONAL_STATUS;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.NUMBER_OF_REQUESTS.b)) {
                return NUMBER_OF_REQUESTS;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.NUMBER_OF_FAILEDREQUESTS.b)) {
                return NUMBER_OF_FAILEDREQUESTS;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.NUMBER_OF_SUCCESSFULREQUESTS.b)) {
                return NUMBER_OF_SUCCESSFULREQUESTS;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.SERVICE_TIME.b)) {
                return SERVICE_TIME;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.MAX_RESPONSETIME.b)) {
                return MAX_RESPONSETIME;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.LAST_RESPONSETIME.b)) {
                return LAST_RESPONSETIME;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.THROUGHPUT.b)) {
                return THROUGHPUT;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.FAULTRATE.b)) {
                return FAULTRATE;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.AVG_RESPONSETIME.b)) {
                return AVG_RESPONSETIME;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.MANAGEABILITY_CAPABILITY.b)) {
                return MANAGEABILITY_CAPABILITY;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        try {
            if (string.contains(ResourceProperty.TOPIC.b)) {
                return TOPIC;
            }
        }
        catch (InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
            throw ResourceProperty.a(invalidResourcePropertyQNameFault);
        }
        String[] stringArray = d;
        a.warning(stringArray[8] + string);
        throw new InvalidResourcePropertyQNameFault(stringArray[7] + string);
    }

    private ResourceProperty(String string, boolean bl2) {
        this.b = string;
        this.c = bl2;
    }

    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || this.getClass() != object.getClass()) {
            return false;
        }
        ResourceProperty resourceProperty = (ResourceProperty)object;
        return !(this.b == null ? resourceProperty.b != null : !this.b.equals(resourceProperty.b));
    }

    public int hashCode() {
        return this.b != null ? this.b.hashCode() : 0;
    }

    public boolean serviceSpecific() {
        return this.c;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[16];
                var3_1 = 0;
                var2_2 = "\u001f\u001c0u[\u0002N\u0018\u0010/f\n\u001e\u001c1lG\u0013H)0&\u000b\u000f\f0qW\u000f_\u0018\u0010/f\n\u0018\u00110lG\u0006C<\f6\u0016\u0002\f/aW\u0013d*?#j^\u0004O\u001e\u001c3vW\u0012_?\u001a\u0002\f/aW\u0013d**7`Q\u0004X?\u001f7o`\u0004Z9\u001c1wA\t\n\u00187oF3J8\u001c&\u001e\u001c1lG\u0013H)Y2q]\u0011N>\r;#\\\u0000F)Y,lFAY)\u001a-d\\\bQ)\u001db=\u000f\u00167oVAE#\rbjV\u0004E8\u0010$z\u0012\u0013N?\u00167qQ\u0004\u000b<\u000b-sW\u0013_5Y-e\u0012\u0017J \f'#\\\u000e_l\n7sB\u000eY8\u001c&9\u0012\u0010\u0000\u00181w`\u0004X<\u0016,pW5B!\u001c\u0017\u0001\u0018,bU\u0004J.\u0010.jF\u0018h-\t#a[\rB8\u0000\u000f\r\u000f%QW\u0012[#\u00171ff\bF)\u0011\u0003\t'qS\u0015B#\u0017#oa\u0015J8\f1\u0010\u0002\f/aW\u0013d*+'rG\u0004X8\n";
                var4_3 = "\u001f\u001c0u[\u0002N\u0018\u0010/f\n\u001e\u001c1lG\u0013H)0&\u000b\u000f\f0qW\u000f_\u0018\u0010/f\n\u0018\u00110lG\u0006C<\f6\u0016\u0002\f/aW\u0013d*?#j^\u0004O\u001e\u001c3vW\u0012_?\u001a\u0002\f/aW\u0013d**7`Q\u0004X?\u001f7o`\u0004Z9\u001c1wA\t\n\u00187oF3J8\u001c&\u001e\u001c1lG\u0013H)Y2q]\u0011N>\r;#\\\u0000F)Y,lFAY)\u001a-d\\\bQ)\u001db=\u000f\u00167oVAE#\rbjV\u0004E8\u0010$z\u0012\u0013N?\u00167qQ\u0004\u000b<\u000b-sW\u0013_5Y-e\u0012\u0017J \f'#\\\u000e_l\n7sB\u000eY8\u001c&9\u0012\u0010\u0000\u00181w`\u0004X<\u0016,pW5B!\u001c\u0017\u0001\u0018,bU\u0004J.\u0010.jF\u0018h-\t#a[\rB8\u0000\u000f\r\u000f%QW\u0012[#\u00171ff\bF)\u0011\u0003\t'qS\u0015B#\u0017#oa\u0015J8\f1\u0010\u0002\f/aW\u0013d*+'rG\u0004X8\n".length();
                var1_4 = 11;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 110;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ResourceProperty.a(v0, ResourceProperty.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "R\\x \u001b\u000fKRp\u001b\u001dX\u0011i]{,,B\fc";
                    var4_3 = "R\\x \u001b\u000fKRp\u001b\u001dX\u0011i]{,,B\fc".length();
                    var1_4 = 5;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 36;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ResourceProperty.a(v0, ResourceProperty.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        ResourceProperty.d = var5;
        var0_6 = ResourceProperty.d;
        ResourceProperty.RESOURCE_ID = new ResourceProperty(var0_6[1], true);
        ResourceProperty.CURRENT_TIME = new ResourceProperty(var0_6[2], false);
        ResourceProperty.OPERATIONAL_STATUS = new ResourceProperty(var0_6[12], true);
        ResourceProperty.NUMBER_OF_REQUESTS = new ResourceProperty(var0_6[13], true);
        ResourceProperty.NUMBER_OF_FAILEDREQUESTS = new ResourceProperty(var0_6[4], true);
        ResourceProperty.NUMBER_OF_SUCCESSFULREQUESTS = new ResourceProperty(var0_6[5], true);
        ResourceProperty.SERVICE_TIME = new ResourceProperty(var0_6[0], true);
        ResourceProperty.MAX_RESPONSETIME = new ResourceProperty(var0_6[15], true);
        ResourceProperty.LAST_RESPONSETIME = new ResourceProperty(var0_6[9], true);
        ResourceProperty.THROUGHPUT = new ResourceProperty(var0_6[3], true);
        ResourceProperty.FAULTRATE = new ResourceProperty(var0_6[6], true);
        ResourceProperty.AVG_RESPONSETIME = new ResourceProperty(var0_6[11], true);
        ResourceProperty.MANAGEABILITY_CAPABILITY = new ResourceProperty(var0_6[10], false);
        ResourceProperty.TOPIC = new ResourceProperty(var0_6[14], false);
        ResourceProperty.a = Logger.getLogger(ResourceProperty.class.getName());
    }

    private static InvalidResourcePropertyQNameFault a(InvalidResourcePropertyQNameFault invalidResourcePropertyQNameFault) {
        return invalidResourcePropertyQNameFault;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x45);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 34;
                    case 1 -> 23;
                    case 2 -> 44;
                    case 3 -> 109;
                    case 4 -> 92;
                    case 5 -> 15;
                    default -> 69;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

