[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webservices-general
Subject:    Re: [XmlSchema 2.0] XmlSchemaObject equals() problem
From:       Benson Margulies <bimargulies () gmail ! com>
Date:       2011-04-23 15:51:09
Message-ID: BANLkTikvxLML+=qKSvNK56W8A6oA=C59Rg () mail ! gmail ! com
[Download RAW message or body]

Wow, that is bizarre. What do you suggest we make it do? Or should we
just eliminate the equals() method and let nature take its course?

On Tue, Apr 5, 2011 at 7:56 AM, Dmitry Repchevsky
<dmitry.repchevski@bsc.es> wrote:
> Hello!
>
> Trying to remove an XmlSchemaElement object from XmlSchema I faced a problem
> with XmlSchemaObject equals() method.
>
> XmlSchema keeps its items in a ArrayList which uses equals() to compare
> elements.
>
> calling
> xmlSchema.getItems().remove(xmlSchemaElement);
> just removes a first item...
>
> Right now I have to search an item by myself to find an index to remove.
>
> Kind regards,
>
> Dmitry
>
> WARNING / LEGAL TEXT: This message is intended only for the use of the
> individual or entity to which it is addressed and may contain
> information which is privileged, confidential, proprietary, or exempt
> from disclosure under applicable law. If you are not the intended
> recipient or the person responsible for delivering the message to the
> intended recipient, you are strictly prohibited from disclosing,
> distributing, copying, or in any way using this message. If you have
> received this communication in error, please notify the sender and
> destroy and delete any copies you may have received.
>
> http://www.bsc.es/disclaimer.htm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic