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 ; }
Returns a list of all attributes including the attributes of all base types .