package org.whole.lang.editors.model.impl; import org.whole.lang.model.AbstractSimpleEntity; import org.whole.lang.editors.model.*; import org.whole.lang.reflect.EntityDescriptor; import org.whole.lang.editors.reflect.EditorsEntityDescriptorEnum; import org.whole.lang.editors.visitors.IEditorsVisitor; import org.whole.lang.editors.reflect.EditorsFeatureDescriptorEnum; import org.whole.lang.model.IEntity; /** * @generator Whole */ public class ControllerComponentImpl extends AbstractSimpleEntity implements ControllerComponent { private static final long serialVersionUID = 1; public EntityDescriptor<ControllerComponent> wGetEntityDescriptor() { return EditorsEntityDescriptorEnum.ControllerComponent; } public int wGetEntityOrd() { return EditorsEntityDescriptorEnum.ControllerComponent_ord; } public void accept(IEditorsVisitor visitor) { try { visitor.visit(this); } catch (Exception e) { throw org.whole.lang.exceptions.IWholeRuntimeException.asWholeException(e, this, visitor.getBindings()); } } private ControllerDeclarations declarations; public ControllerDeclarations getDeclarations() { return notifyRequested(EditorsFeatureDescriptorEnum.declarations, declarations); } public void setDeclarations(ControllerDeclarations declarations) { notifyChanged(EditorsFeatureDescriptorEnum.declarations, this.declarations, this.declarations = declarations); } public IEntity wGet(int index) { switch (index) { case 0: return getDeclarations().wGetAdaptee(false); default: throw new IllegalArgumentException(); } } public void wSet(int index, IEntity value) { switch (index) { case 0: setDeclarations(value .wGetAdapter(EditorsEntityDescriptorEnum.ControllerDeclarations)); break; default: throw new IllegalArgumentException(); } } public int wSize() { return 1; } }