PDFJSDebuggerConsoleState.java 1.17 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.internal.pdftoolkit.core.types.ASName
 */
package com.adobe.internal.pdftoolkit.pdf.interactive;

import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.interactive.PDFViewerPreferences;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public enum PDFJSDebuggerConsoleState {
    Enable(PDFViewerPreferences.k_Enable),
    Disable(PDFViewerPreferences.k_Disable),
    Delegate(PDFViewerPreferences.k_Delegate);
    
    private ASName stateName;

    private PDFJSDebuggerConsoleState(ASName stateName) {
        this.stateName = stateName;
    }

    public static PDFJSDebuggerConsoleState getInstance(ASName stateName) {
        if (stateName == PDFViewerPreferences.k_Enable) {
            return Enable;
        }
        if (stateName == PDFViewerPreferences.k_Disable) {
            return Disable;
        }
        if (stateName == PDFViewerPreferences.k_Delegate) {
            return Delegate;
        }
        return null;
    }

    public ASName getName() {
        return this.stateName;
    }
}