1 package org.omg.uml.foundation.datatypes; 2 3 public final class PseudostateKindEnum implements PseudostateKind { 4 public static final PseudostateKindEnum PK_CHOICE = new PseudostateKindEnum("pk_choice"); 5 public static final PseudostateKindEnum PK_DEEP_HISTORY = new PseudostateKindEnum("pk_deepHistory"); 6 public static final PseudostateKindEnum PK_FORK = new PseudostateKindEnum("pk_fork"); 7 public static final PseudostateKindEnum PK_INITIAL = new PseudostateKindEnum("pk_initial"); 8 public static final PseudostateKindEnum PK_JOIN = new PseudostateKindEnum("pk_join"); 9 public static final PseudostateKindEnum PK_JUNCTION = new PseudostateKindEnum("pk_junction"); 10 public static final PseudostateKindEnum PK_SHALLOW_HISTORY = new PseudostateKindEnum("pk_shallowHistory"); 11 12 private static final java.util.List typeName; 13 private final java.lang.String literalName; 14 15 static { 16 java.util.ArrayList temp = new java.util.ArrayList (); 17 temp.add("Data_Types"); 18 temp.add("PseudostateKind"); 19 typeName = java.util.Collections.unmodifiableList(temp); 20 } 21 22 private PseudostateKindEnum(java.lang.String literalName) { 23 this.literalName = literalName; 24 } 25 26 public java.util.List refTypeName() { 27 return typeName; 28 } 29 30 public java.lang.String toString() { 31 return literalName; 32 } 33 34 public int hashCode() { 35 return literalName.hashCode(); 36 } 37 38 public boolean equals(java.lang.Object o) { 39 if (o instanceof PseudostateKindEnum) return (o == this); 40 else if (o instanceof PseudostateKind) return (o.toString().equals(literalName)); 41 else return ((o instanceof javax.jmi.reflect.RefEnum) && ((javax.jmi.reflect.RefEnum) o).refTypeName().equals(typeName) && o.toString().equals(literalName)); 42 } 43 44 public static PseudostateKind forName(java.lang.String name) { 45 if (name.equals("pk_choice")) return PK_CHOICE; 46 if (name.equals("pk_deepHistory")) return PK_DEEP_HISTORY; 47 if (name.equals("pk_fork")) return PK_FORK; 48 if (name.equals("pk_initial")) return PK_INITIAL; 49 if (name.equals("pk_join")) return PK_JOIN; 50 if (name.equals("pk_junction")) return PK_JUNCTION; 51 if (name.equals("pk_shallowHistory")) return PK_SHALLOW_HISTORY; 52 throw new java.lang.IllegalArgumentException ("Unknown literal name '" + name + "' for enumeration 'Data_Types.PseudostateKind'"); 53 } 54 protected java.lang.Object readResolve() throws java.io.ObjectStreamException { 55 try { 56 return forName(literalName); 57 } catch (java.lang.IllegalArgumentException e) { 58 throw new java.io.InvalidObjectException (e.getMessage()); 59 } 60 } 61 } 62 | Popular Tags |