-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Saminda,

 > Hi All,
> 
> We could get the AxisMessage from the given AxisOperation using the
> AxisOperation.getMessage(String label); In order to get the AxisMessage
> we should know the MEP before hand

Well

1. AxisOperation has a method to know the MEP. see
AxisOperation.getAxisSpecifMEPConstant().

2. AxisOperation is an abstract class so you will always have a specific
implementation for the particular MEP in use which you can use with
instanceof to check the MEP.

So I hope this will help you to get the MEP from AxisOperation.

> and should know the value of the
> label. IMHO there is no way to get the AxisMessages from a given
> AxisOperation.  Shall we introduce a  method,
> 
> *public AxisMessage[] getMessages()* to AxisOperation to the
> AxisMessages from AxisOperation.

I don't think this will help you in any means. The reason is this. If
you know the MEP, from one of the above methods, you will know what the
default message labels are. So use it to get the messages.

#1. If you do not know the label of the messages, in runtime, then how
can you get the relevant message even if you have all the messages. If
they have custom labels, then you must know them before hand even to
process the messages. If you know the custom label, you can call the
existing message.

#2. If you have a MEP, which is different from existing ones, then you
need lot more things to be done in addition to this ;)

I assume Saminda has a very good point to ask this question. Saminda,
you wanna explain exactly what you are trying to do?

Thanks,
Eran Chinthaka
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO/6cjON2uBzUhh8RAr5CAJ9VWva3J2Pk1XK652oBWKIqug0GMgCgs99w
CtrA9CUSNEu4brGOJSGL3k8=
=wdRU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to