[mono-android] transforming a property in a java library project
Miljenko Cvjetko
mcvjetko at holisticware.net
Tue Jun 26 15:43:50 UTC 2012
Hi
snip+inline
On 2012.06.26 16:14, Wally McClure wrote:
>
> as will as:
> <mapping jni-class="com/scalabledevelopment/math/Operations">
> <method jni-name="Operations"
> clr-enum-type="FixedOperations" />
> </mapping>
>
>
>
> It seems it is xml again - from what I can see (blurred) w/o coffee
> this early in the morning.
> You're closing <mapping> twice: with /> and </mapping>...
>
> I'm not sure where you see the double closing.
mapping + method confused me.
Besides I didn't use EnumFields.xml and EnumMethods.xml...
>
>
> Neither of the above options helps me.
>
> I have tried to go into Metadata.xml and use the following:
> <attr
> path="/api/package[@name='com.scalabledevelopment.math']/class[@name='Operations']/property[@name='Operations']"
> <mailto:/api/package[@name=%27com.scalabledevelopment.math%27]/class[@name=%27Operations%27]/property[@name=%27Operations%27]>
> name="managedName" >NumOperations</attr>
>
>
> And here I think it is not property, but method!
> Props are methods....
>
> try:
>
> <attr
> path="/api/package[@name='com.scalabledevelopment.math']/class[@name='Operations']/method[@name='Operations']"
> <mailto:/api/package[@name=%27com.scalabledevelopment.math%27]/class[@name=%27Operations%27]/method[@name=%27Operations%27]>
> name="managedName" >NumOperations</attr>
>
> see my sample above.... (achartengine wrapped)
> real world (acharengine + admob)
> https://github.com/moljac/HolisticWare_JavaBindingProjects
>
> AdMob is not done (yet)
>
> I'll take a look at your sampe project on github. Unfortunately, the
> entry for changing a property name is not working any better than
> mine. hmmm, what to do. ;-/
>
Is it possible to see Your jar, or complete project?
Do You really have inside class Operations property Operations?
mel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120626/f16a67f3/attachment.html>
More information about the Monodroid
mailing list