public function addAttribute(AttributeDef $attribute)
 {
     $this->attributes[$attribute->getName()] = $attribute;
 }
 public function __construct(AttributeDef $att)
 {
     parent::__construct($att->getSchema(), $att->getName());
     $this->wrapped = $att;
 }