code: public Collection<Attribute<?>> getAllAttributes() {
      List<Attribute<?>> allAttributes = new ArrayList<Attribute<?>>();
      allAttributes.addAll(getAttributes());
      Collection<ModelElementType> baseTypes = ModelUtil.calculateAllBaseTypes(this);
      for (ModelElementType baseType : baseTypes) {
        allAttributes.addAll(baseType.getAttributes());
      }
      return allAttributes;
    }
docs: Returns a list of all attributes, including the attributes of all base types.
  
  @return the list of all attributes