package org.whole.lang.grammars.model.impl; import org.whole.lang.model.AbstractDataEntity; import org.whole.lang.grammars.model.*; import org.whole.lang.grammars.visitors.IGrammarsVisitor; import org.whole.lang.grammars.reflect.GrammarsEntityDescriptorEnum; import org.whole.lang.reflect.EntityDescriptor; /** * @generator Whole */ public class ByLinesImpl extends AbstractDataEntity implements ByLines { private static final long serialVersionUID = 1; private int value; public int getValue() { return notifyRequested(value); } public void setValue(int value) { notifyChanged(this.value, this.value = value); } public void accept(IGrammarsVisitor visitor) { try { visitor.visit(this); } catch (Exception e) { throw org.whole.lang.exceptions.IWholeRuntimeException.asWholeException(e, this, visitor.getBindings()); } } public int wGetEntityOrd() { return GrammarsEntityDescriptorEnum.ByLines_ord; } public EntityDescriptor<ByLines> wGetEntityDescriptor() { return GrammarsEntityDescriptorEnum.ByLines; } public Object wGetValue() { return new Integer(getValue()); } public void wSetValue(Object value) { setValue(((Integer) value).intValue()); } public String wStringValue() { return toString(); } public void wSetValue(String value) { try { setValue(Integer.valueOf(value).intValue()); } catch (NumberFormatException e) { } } public int wIntValue() { return getValue(); } public void wSetValue(int value) { setValue(value); } }