Prims implementing Compound
Steve Loughran <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
I just want to check that what I am about to do will work.
1. I have an
XmlNode extends Prim {
...
}
2. I want XmlElement to extend XmlNode, and be compound. Normally I'd
just extend Compound, but cannot do that here
Can I just get away with
XmlElement extends XmlNode ...
And in the implementation, have
class XmlElementImpl extends CompoundImpl Implements XmlElement {
...
}
So the implementation has all the compound logic inherited from the
parent, I just dont actually come out and say it in the descriptor.
Does this work?
-steve
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt