/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } org.objectweb.fractal.api.Component thisComponent; try { thisComponent = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } org.objectweb.fractal.api.Component thisComponent; try { thisComponent = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Already a sub component"); } org.objectweb.fractal.api.Component thisComponent; try { thisComponent = ((org.objectweb.fractal.api.Component) (weaveableC.getFcInterface("component"))); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableC, subComponent, "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "A component cannot be a sub component of itself"); } java.util.List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0; i < (allSubComponents.size()); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#addFcSubComponent(org.objectweb.fractal.api.Component) */ private void addFcSubComponent$0(final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "Already a sub component"); } Component thisComponent; try { thisComponent = ((Component)(weaveableC.getFcInterface("component"))); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalContentException(e , weaveableC , subComponent , "Cannot check this operation"); } if (subComponent.equals(thisComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "A component cannot be a sub component of itself"); } List allSubComponents = org.objectweb.fractal.julia.control.content.Util.getAllSubComponents(subComponent); for (int i = 0 ; i < (allSubComponents.size()) ; ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "Would create a cycle in the component hierarchy"); } } addFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.BindingContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$1(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (org.objectweb.fractal.api.control.IllegalBindingException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableOptC, subComponent, "Would create non local bindings"); } removeFcSubComponent$2(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.BindingContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (org.objectweb.fractal.api.control.IllegalBindingException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableOptC, subComponent, "Would create non local bindings"); } removeFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$1(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (!(containsFcSubComponent(subComponent))) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Not a sub component"); } removeFcSubComponent$2(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$2(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (!(containsFcSubComponent(subComponent))) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Not a sub component"); } removeFcSubComponent$3(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$2(final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!(containsFcSubComponent(subComponent))) { throw new ChainedIllegalContentException(null , weaveableC , subComponent , "Not a sub component"); } removeFcSubComponent$3(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.BindingContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$1(final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalContentException(e , weaveableOptC , subComponent , "Would create non local bindings"); } removeFcSubComponent$2(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.BindingContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$0(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (org.objectweb.fractal.api.control.IllegalBindingException e) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(e, weaveableOptC, subComponent, "Would create non local bindings"); } removeFcSubComponent$1(subComponent); }
/** * @see org.objectweb.fractal.julia.control.content.CheckContentMixin#removeFcSubComponent(org.objectweb.fractal.api.Component) */ private void removeFcSubComponent$1(final org.objectweb.fractal.api.Component subComponent) throws org.objectweb.fractal.api.control.IllegalContentException, org.objectweb.fractal.api.control.IllegalLifeCycleException { if (!(containsFcSubComponent(subComponent))) { throw new org.objectweb.fractal.julia.control.content.ChainedIllegalContentException(null, weaveableC, subComponent, "Not a sub component"); } removeFcSubComponent$2(subComponent); }
throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Already a sub component"); thisComponent = (Component)_this_weaveableC.getFcInterface("component"); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalContentException( e, _this_weaveableC, subComponent, "Cannot check this operation"); throw new ChainedIllegalContentException( null, _this_weaveableC, for (int i = 0; i < allSubComponents.size(); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC,
throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Already a sub component"); thisComponent = (Component)_this_weaveableC.getFcInterface("component"); } catch (NoSuchInterfaceException e) { throw new ChainedIllegalContentException( e, _this_weaveableC, subComponent, "Cannot check this operation"); throw new ChainedIllegalContentException( null, _this_weaveableC, for (int i = 0; i < allSubComponents.size(); ++i) { if (allSubComponents.get(i).equals(thisComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC,
/** * Checks that the given component is really a sub component, and then * calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Not a sub component"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that the given component is really a sub component, and then * calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Not a sub component"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that the given component is really a sub component, and then * calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { if (!containsFcSubComponent(subComponent)) { throw new ChainedIllegalContentException( null, _this_weaveableC, subComponent, "Not a sub component"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that this operation will not create non local bindings, and then * calls the overriden method. * * @param subComponent * the component to be removed from this component. * @throws IllegalContentException * if the given component cannot be removed from this component. * @throws IllegalLifeCycleException * if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} * interface, but it is not in an appropriate state to perform * this operation. */ public void removeFcSubComponent(final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalContentException(e, _this_weaveableOptC, subComponent, "Would create non local bindings"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that this operation will not create non local bindings, and then * calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalContentException( e, _this_weaveableOptC, subComponent, "Would create non local bindings"); } _super_removeFcSubComponent(subComponent); }
/** * Checks that this operation will not create non local bindings, and then * calls the overriden method. * * @param subComponent the component to be removed from this component. * @throws IllegalContentException if the given component cannot be removed * from this component. * @throws IllegalLifeCycleException if this component has a {@link * org.objectweb.fractal.api.control.LifeCycleController} interface, but it is not in an appropriate state * to perform this operation. */ public void removeFcSubComponent (final Component subComponent) throws IllegalContentException, IllegalLifeCycleException { try { checkFcRemoveSubComponent(subComponent); } catch (IllegalBindingException e) { throw new ChainedIllegalContentException( e, _this_weaveableC, subComponent, "Would create non local bindings"); } _super_removeFcSubComponent(subComponent); }