Hi list:
Need to know what to do with some code
I've added to ECS.
John
____
Summary:
Added a new way of method chaining
in ECS. It works like this:
ElementClass ec = new ElementClass()
.set.someattribute(/* */)
.set.someattribute(/* */)
.add.element(/* */)
.add.element(/* */);
Allows subclassed objects to use
consistent names.
Would also like to include method chaining
support for interfaces. It would look like
this:
Interface e = new ElementClass();
Interface f = e.chain(null)
.set.someattribute(/* */)
.set.someattribute(/* */)
.add.element(/* */)
.add.element(/* */)
.unchain();
But will need help deciding which interfaces
are appropriate for this type of support. I
suggest something new like ComplexElement
to inherit from AttributeElement and
ContainerElement which both in turn inherit
from Element, but there may be better
designs.
John
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]