package jasi.simple.defi; import jasi.sim.basic.element.AbstractElementBean; import jasi.sim.basic.id.Id; /** The container of a complex element's attributes. */ public abstract class ComplexElementHandler extends AbstractElementBean { /** Comment for serialVersionUID. */ private static final long serialVersionUID = 1L; /** The value attribute. */ private ComplexAttribute value = new ComplexAttribute(); /** * Construct container of a complex element's attributes. */ protected ComplexElementHandler() { super(); } /** * Construct container of a complex element's attributes. * * @param id * The simulation element's ID. */ protected ComplexElementHandler(Id id) { super(id); } /** * Returns a string representation of this object. * * @return The string. */ @Override public String toString() { return super.toString() + ", simple.defi.ComplexElement.value=" + value; } /** * Set the value attribute. * * @param value * The new value of the attribute. */ public final void setValue(ComplexAttribute value) { if (set("value", value)) { this.value = new ComplexAttribute(value);// required for mutable } } /** * Get the value attribute. * * @return Its value. */ public final ComplexAttribute getValue() { return value = get("value", value); } }