public void setAttributeValueAsString(String svalue) throws InvalidValueException {
   Object value = convertValue(attribute.getType(), svalue);
   this.value = value;
   for (AttributeChangeListener listener : listeners)
     listener.attributeChanged(owner, attribute, value);
 }
 public void setAttributeValue(Object value) throws InvalidValueException {
   checkValue(attribute.getType(), value);
   this.value = value;
   for (AttributeChangeListener listener : listeners)
     listener.attributeChanged(owner, attribute, value);
 }