Kees Jongenburger <[EMAIL PROTECTED]> wrote:
> On Thursday 30 January 2003 11:36 am, Michiel Meeuwissen wrote:
> > Michiel Meeuwissen <[EMAIL PROTECTED]> wrote:
> > > I suggest to deprecate this function immediately (also in 1.6) and
> > > make a new one isInstanceOf(String builder) (or even
> > > isInstanceOf(MMObjectBuilder builder?), or both) with the inverse
> > > behavior.
> >
> > Perhaps it should even be named 'isExtensionOf' because MMObjectNodes
> > are the equivalents of class instances, not MMObjectBuilders.
> 
> What does the instanceof realy mean?
> if I create a new news type that contains one image
> <builder name="ImageNews" extends="news">
>        <classfile>Images</classfile>
>       <field type='BYTE" name="handle"/>
>         .....
> </builder>
> 
> the MyNews builder extends news so is instanceof news?
> the MyNews builder extends the Images class and so is instanceof images?

In this case the imagenews builder is an extension of the news
builder, as stated in the builder-xml.

The java keyword 'instanceof' can be used to check the implementation
of the builder-class, it the need for this should arise.

 Michiel


-- 
mihxil'  Michiel Meeuwissen 
Mediapark C101 Hilversum  
+31 (0)35 6772979
[]() 

Reply via email to