You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Dmitry Repchevsky <dm...@bsc.es> on 2011/04/05 13:56:43 UTC
[XmlSchema 2.0] XmlSchemaObject equals() problem
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
Re: [XmlSchema 2.0] XmlSchemaObject equals() problem
Posted by Benson Margulies <bi...@gmail.com>.
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
<dm...@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