scopekindenum.java

来自「数据仓库展示程序」· Java 代码 · 共 56 行

JAVA
56
字号
/*
 * Java(TM) OLAP Interface
 */
package org.omg.java.cwm.objectmodel.core;



public final class ScopeKindEnum
implements org.omg.java.cwm.objectmodel.core.ScopeKind {

  public static final org.omg.java.cwm.objectmodel.core.ScopeKindEnum SK_INSTANCE = new ScopeKindEnum("sk_instance");

  public static final org.omg.java.cwm.objectmodel.core.ScopeKindEnum SK_CLASSIFIER = new ScopeKindEnum("sk_classifier");

  private static final java.util.List typeName = java.util.Collections.unmodifiableList(java.util.Arrays.asList(new String[] {"Core","ScopeKind"}));

  private final java.lang.String literalName;

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

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

  public java.lang.String toString() {
    return literalName;
  }

  public boolean equals( java.lang.Object other ) {
    return (other instanceof org.omg.java.cwm.objectmodel.core.ScopeKindEnum)?other == this:
      ((other instanceof javax.jmi.reflect.RefEnum) && ((javax.jmi.reflect.RefEnum)other).refTypeName().equals(typeName) && ((javax.jmi.reflect.RefEnum)other).toString().equals(literalName));
  }

  protected java.lang.Object readResolve()
    throws java.io.InvalidObjectException {
    try {
      return forName(literalName);
    } catch ( java.lang.IllegalArgumentException iae ) {
      throw new java.io.InvalidObjectException(iae.getMessage());
    }
  }

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

  public static org.omg.java.cwm.objectmodel.core.ScopeKind forName( java.lang.String value ) {
    if ( value.equals(SK_INSTANCE.literalName) ) return SK_INSTANCE;
    if ( value.equals(SK_CLASSIFIER.literalName) ) return SK_CLASSIFIER;
    throw new java.lang.IllegalArgumentException("Unknown enumeration value '"+value+"' for type 'Core.ScopeKind'");
  }

}

⌨️ 快捷键说明

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