Looking at the source code of schema.pm

<code>
my $sup = $elem->{sup} or next;
push @oc, @$sup;
</code>

it already walks the superclasses.

So to get all possible attributes for a class, just ask for all "must" and "may" attributes for a class.

Cheers,

Hans



Chris Ridd schreef:
On 10/3/06 2:18, Hirmke Michael <[EMAIL PROTECTED]> wrote:

Thx for your answer.
Though it is not, what I wanted to hear, I have to live with this fact.

Recently a new method was added to Schema.pm that determines an attribute's
syntax by looking through the supertypes. I think it would be reasonable to
add similar methods to return all the mandatory/optional attributes for a
given class by looking through the superclasses - if you want to write
something...

Cheers,

Chris


Reply via email to