⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scopekindenum.java

📁 数据仓库展示程序
💻 JAVA
字号:
package javax.jmi.model;

import javax.jmi.reflect.RefEnum;

public final class ScopeKindEnum implements ScopeKind {
    public static final ScopeKindEnum INSTANCE_LEVEL = new ScopeKindEnum("instance_level");
    public static final ScopeKindEnum CLASSIFIER_LEVEL = new ScopeKindEnum("classifier_level");

    private static final java.util.List typeName;
    private final String literalName;

    static {
        java.util.ArrayList temp = new java.util.ArrayList();
        temp.add("Model");
        temp.add("ScopeKind");
        typeName = java.util.Collections.unmodifiableList(temp);
    }

    private ScopeKindEnum(String literalName) {
        this.literalName = literalName;
    }

    public java.util.List refTypeName() {
        return typeName;
    }

    public String toString() {
        return literalName;
    }

    public int hashCode() {
        return literalName.hashCode();
    }

    public boolean equals(Object o) {
        if (o instanceof ScopeKindEnum) return (o == this);
        else if (o instanceof ScopeKind) return (o.toString().equals(literalName));
        else return ((o instanceof RefEnum) && ((RefEnum) o).refTypeName().equals(typeName) && o.toString().equals(literalName));
    }

    protected Object readResolve() throws java.io.ObjectStreamException {
        try {
            return forName(literalName);
        } catch ( IllegalArgumentException iae ) {
            throw new java.io.InvalidObjectException(iae.getMessage());
        }
    }
  public static ScopeKind forName( java.lang.String value ) {
    if ( value.equals("instance_level") ) return ScopeKindEnum.INSTANCE_LEVEL;
    if ( value.equals("classifier_level") ) return ScopeKindEnum.CLASSIFIER_LEVEL;
    throw new IllegalArgumentException("Unknown enumeration value '"+value+"' for type 'Model.ScopeKind'");
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -