View Javadoc
1 package com.bonevich.erj.mof.interfaces.model; 2 import javax.jmi.model.*; 3 4 public class AttributeConstraintEnum implements com.bonevich.erj.mof.interfaces.model.AttributeConstraint 5 { 6 public static final AttributeConstraintEnum NULL = new AttributeConstraintEnum( "NULL" ); 7 public static final AttributeConstraintEnum NOTNULL = new AttributeConstraintEnum( "NOTNULL" ); 8 9 private final java.lang.String literalName; 10 private static final java.util.List typeName; 11 static 12 { 13 java.util.ArrayList temp = new java.util.ArrayList(); 14 temp.add( "ErjInfoModel" ); 15 temp.add( "AttributeConstraint" ); 16 typeName = java.util.Collections.unmodifiableList(temp); 17 } 18 public java.util.List refTypeName() 19 { 20 return typeName; 21 } 22 public boolean equals(Object o) 23 { 24 if (o instanceof AttributeConstraintEnum) return (o == this); 25 else return ((o instanceof javax.jmi.reflect.RefEnum) && ((javax.jmi.reflect.RefEnum) o).refTypeName().equals(typeName) &&o.toString().equals(literalName)); 26 } 27 public String toString() 28 { 29 return literalName; 30 } 31 protected Object readResolve() throws java.io.ObjectStreamException 32 { 33 if (literalName.equals(NULL.literalName)) return NULL; 34 return NOTNULL; 35 } 36 public int hashCode() 37 { 38 return literalName.hashCode(); 39 } 40 private AttributeConstraintEnum(String literalName) 41 { 42 this.literalName = literalName; 43 } 44 }

This page was automatically generated by Maven