--- jon * <[EMAIL PROTECTED]> wrote:
>Attributes should be order based.
> The current implementation
> puts things into a hashtable and that is bad since
> the attributes can get
> out of order. We have run into this issue with ECS
> and attributes to Html
> entities. With Html, attributes can be any order.
> With newer technologies
> (XML) attributes need to be in a specific order.
> This will probably bite you
> later so you might as well fix it now.
> 
If this is true, isn't this sufficiently encapsulated
to soften the impact of change.  All the access is
with the Attributed interface.  If order is required,
shouldn't be the end of the world.  

P.O. holds an AttribuedImpl.  Even P.O. doesn't know
it has a hashtable.  In the early code, I used
hashtable, but substituted with AttributedImpl.
The outside world gets an enumeration of attrs.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to