Stephan Nagy wrote:
> On another note I'm all for the idea of adding
> the concept of attributetemplates into ecs so that people can easily create
> templating libraries. Would work something like:
>
> AttributeTemplate at = new AttributeTemplate();
> at.add(new Attribute(name,value));
>
> SomeElement se = new SomeElement(at);
> FooElement fe = new FooElement(at);
>
> That way you can reuse an attribute set across many different elements therby
> skipping the painful setFoo methods on every element you wish to create with
> identical attributes. Any comments?
definitely +1
i suppose also
fe.addAttribute(at);
on the subject of attributes, we had questions on the list a while ago re:getting
attributes.
symmetry sort of says that getters for attributes with setters make sense, and at
least one person needed getters for the common attributes in
org.apache.ecs.html.Option at least.
on the other hand, providing getters for only some (and not all) attributes for
some classes would be a bit funny - but providing getters for all attributes
with setters for all classes doesn't seem worth the candle to me. comments?
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]