Re: retrieve all possible attributes for a class

2006-03-21 Thread [EMAIL PROTECTED]
Hirmke Michael schreef: Hi, good to know, but nevertheless it misses all the attributes of aux classes assigned to a class. Right? Correct, but formally the attributes are only allowed after you add the aux class. So the trick would be to ask for all aux classes of your class

RE: retrieve all possible attributes for a class

2006-03-21 Thread Hirmke Michael
Hi, >> good to know, but nevertheless it misses all the attributes of >> aux classes assigned to a class. Right? > Correct, but formally the attributes are only allowed after you > add the aux class. So the trick would be to ask for all aux > classes of your class using the ditcontentrule query

Re: retrieve all possible attributes for a class

2006-03-16 Thread [EMAIL PROTECTED]
Hirmke Michael schreef: Hi, Looking at the source code of schema.pm my $sup = $elem->{sup} or next; push @oc, @$sup; 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. good to know, but

RE: retrieve all possible attributes for a class

2006-03-14 Thread Hirmke Michael
Hi, > Looking at the source code of schema.pm > > > my $sup = $elem->{sup} or next; > push @oc, @$sup; > > > 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. good to know, but nevertheless i

Re: retrieve all possible attributes for a class

2006-03-10 Thread [EMAIL PROTECTED]
Looking at the source code of schema.pm my $sup = $elem->{sup} or next; push @oc, @$sup; 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, Hirmk

Re: retrieve all possible attributes for a class

2006-03-10 Thread Chris Ridd
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 rea

RE: retrieve all possible attributes for a class

2006-03-10 Thread Hirmke Michael
Hi, > From: Chris Ridd [mailto:[EMAIL PROTECTED] [...] > > and auxiliary classes? Do I really have to query the class, > then query for > > the next superior class, then query for the attributes of > this class and so > > on? > > Yes. 8-( [...] > It should return all of the *allowed* auxilia

Re: retrieve all possible attributes for a class

2006-03-10 Thread Chris Ridd
On 8/3/06 4:40, Hirmke Michael <[EMAIL PROTECTED]> wrote: > Hi *, > > what is the best/preferred method for retrieving *all* possible attributes > for an object including all the attributes of both of it's classes superior > and auxiliary classes? Do I really have to query the class, then query f