/** * This method is not appropriate for the local objects and just * throws an exception. * * @throws NO_IMPLEMENT, always. */ public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType how ) { throw new NO_IMPLEMENT(INAPPROPRIATE); }
public synchronized void setPolicies(Policy[] policies, SetOverrideType set_add) throws org.omg.CORBA.InvalidPolicies { if (set_add == SetOverrideType.SET_OVERRIDE) { clear(); } java.util.Vector errors = null; for (short i = 0; i < policies.length; i++) { try { setPolicy(policies[i]); } catch (PolicyError pe) { if (errors == null) errors = new java.util.Vector(); errors.add(new Short(i)); } } if (errors != null) { InvalidPolicies ex = new InvalidPolicies(); int size = errors.size(); ex.indices = new short[size]; for (int i = 0; i < size; i++) ex.indices[i] = ((Short) errors.elementAt(i)).shortValue(); throw ex; } }
public org.omg.CORBA.Object _set_policy_override( Policy[] policies, SetOverrideType set_add) { return object._set_policy_override( policies, set_add ) ; }
/** * Returns a new object with the new policies either replacing or * extending the current policies, depending on the second parameter. * * @param target the CORBA object, to that this operation must be applied. * @param policies the policy additions or replacements. * @param how either {@link SetOverrideType#SET_OVERRIDE} to override the * current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace * them. * * @throws NO_IMPLEMENT, always (following the 1.4 specification). * * @return the new reference with the changed policies. */ public org.omg.CORBA.Object set_policy_override(org.omg.CORBA.Object target, Policy[] policies, SetOverrideType how ) { throw new NO_IMPLEMENT(WHY); }
/** * Returns a new object with the new policies either replacing or * extending the current policies, depending on the second parameter. * * @param policies the policy additions or replacements. * @param how either {@link SetOverrideType#SET_OVERRIDE} to override the * current policies of {@link SetOverrideType#ADD_OVERRIDE} to replace * them. */ public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType how ) { return delegate.set_policy_override(this, policies, how); }
/** * The POAs cannot be created by this method. * * @specnote this is also not possible in Suns jdk at least till 1.4. * * @throws NO_IMPLEMENT always. */ public org.omg.CORBA.Object _set_policy_override(Policy[] policies, SetOverrideType how ) { throw new NO_IMPLEMENT("Use createPOA instead."); }
/** * Create the initialised instance. * * @param initialValue the initial value. */ public SetOverrideTypeHolder(SetOverrideType initialValue) { value = initialValue; }