package org.whole.lang.models.model.impl;
import org.whole.lang.model.AbstractDataEntity;
import org.whole.lang.models.model.*;
import org.whole.lang.models.visitors.IModelsVisitor;
import org.whole.lang.models.reflect.ModelsEntityDescriptorEnum;
import org.whole.lang.reflect.EntityDescriptor;
/**
* @generator Whole
*/
public class EntityTypeImpl extends AbstractDataEntity implements EntityType {
private static final long serialVersionUID = 1;
private String value;
public String getValue() {
return notifyRequested(value);
}
public void setValue(String value) {
notifyChanged(this.value, this.value = value);
}
public void accept(IModelsVisitor visitor) {
try {
visitor.visit(this);
} catch (Exception e) {
throw org.whole.lang.exceptions.IWholeRuntimeException.asWholeException(e, this, visitor.getBindings());
}
}
public int wGetEntityOrd() {
return ModelsEntityDescriptorEnum.EntityType_ord;
}
public EntityDescriptor<EntityType> wGetEntityDescriptor() {
return ModelsEntityDescriptorEnum.EntityType;
}
public Object wGetValue() {
return getValue();
}
public void wSetValue(Object value) {
setValue((String) value);
}
public String wStringValue() {
return getValue();
}
public void wSetValue(String value) {
setValue(value);
}
}