001 package org.omg.CosNaming.NamingContextPackage; 002 /** 003 * Generated from IDL enum "NotFoundReason". 004 * 005 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007 006 * @version generated at Sep 22, 2012 10:57:57 AM 007 */ 008 009 public final class NotFoundReason 010 implements org.omg.CORBA.portable.IDLEntity 011 { 012 private int value = -1; 013 public static final int _missing_node = 0; 014 public static final NotFoundReason missing_node = new NotFoundReason(_missing_node); 015 public static final int _not_context = 1; 016 public static final NotFoundReason not_context = new NotFoundReason(_not_context); 017 public static final int _not_object = 2; 018 public static final NotFoundReason not_object = new NotFoundReason(_not_object); 019 public int value() 020 { 021 return value; 022 } 023 public static NotFoundReason from_int(int value) 024 { 025 switch (value) { 026 case _missing_node: return missing_node; 027 case _not_context: return not_context; 028 case _not_object: return not_object; 029 default: throw new org.omg.CORBA.BAD_PARAM(); 030 } 031 } 032 public String toString() 033 { 034 switch (value) { 035 case _missing_node: return "missing_node"; 036 case _not_context: return "not_context"; 037 case _not_object: return "not_object"; 038 default: throw new org.omg.CORBA.BAD_PARAM(); 039 } 040 } 041 protected NotFoundReason(int i) 042 { 043 value = i; 044 } 045 java.lang.Object readResolve() 046 throws java.io.ObjectStreamException 047 { 048 return from_int(value()); 049 } 050 }