79 |
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynEnum"); |
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynEnum"); |
80 |
} |
} |
81 |
} |
} |
82 |
|
|
83 |
|
/** |
84 |
|
* Narrow the given object to the DynEnum. For the objects that are |
85 |
|
* always local, this operation does not differ from the ordinary |
86 |
|
* {@link #narrow} (ClassCastException will be thrown if narrowing something |
87 |
|
* different). |
88 |
|
* |
89 |
|
* @param obj the object to cast. |
90 |
|
* |
91 |
|
* @return the casted DynEnum. |
92 |
|
* |
93 |
|
* @since 1.5 |
94 |
|
* |
95 |
|
* @see OMG issue 4158. |
96 |
|
*/ |
97 |
|
public static DynEnum unchecked_narrow(org.omg.CORBA.Object obj) |
98 |
|
{ |
99 |
|
return narrow(obj); |
100 |
|
} |
101 |
|
|
102 |
/** |
/** |
103 |
* Get the type code of the {@link DynEnum}. |
* Get the type code of the {@link DynEnum}. |