package org.whole.lang.frames.model.impl; import org.whole.lang.model.AbstractDataEntity; import org.whole.lang.frames.model.*; import org.whole.lang.frames.visitors.IFramesVisitor; import org.whole.lang.frames.reflect.FramesEntityDescriptorEnum; import org.whole.lang.reflect.EntityDescriptor; /** * @generator Whole */ public class ByteValueImpl extends AbstractDataEntity implements ByteValue { private static final long serialVersionUID = 1; private byte value; public byte getValue() { return notifyRequested(value); } public void setValue(byte value) { notifyChanged(this.value, this.value = value); } public void accept(IFramesVisitor visitor) { try { visitor.visit(this); } catch (Exception e) { throw org.whole.lang.exceptions.IWholeRuntimeException.asWholeException(e, this, visitor.getBindings()); } } public int wGetEntityOrd() { return FramesEntityDescriptorEnum.ByteValue_ord; } public EntityDescriptor<ByteValue> wGetEntityDescriptor() { return FramesEntityDescriptorEnum.ByteValue; } public Object wGetValue() { return new Byte(getValue()); } public void wSetValue(Object value) { setValue(((Byte) value).byteValue()); } public String wStringValue() { return toString(); } public void wSetValue(String value) { try { setValue(Byte.valueOf(value).byteValue()); } catch (NumberFormatException e) { } } public byte wByteValue() { return getValue(); } public void wSetValue(byte value) { setValue(value); } }