RE: Prims implementing Compound
"Goldsack, Patrick" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <D46BE408DE18F841B90DEFA8CAA2CDB2417D17@sdcexcea01.emea.cpqcorp.net> |
Yes, but you may need to add in some of the attributes for liveness,etc,
that Compound provides (not many - look in compound.sf)
Patrick
-----Original Message-----
From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Steve Loughran
Sent: 18 January 2005 13:37
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] Prims implementing Compound
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
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
-------------------------------------------------------
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