Syntax for accessing constant in java static class

I am new to using java objects in jruby and I could use some help on
this
one:

I have a jar file containing a class that has a static class with some
constants in it
(net.sf.saxon.s9api.Serializer.Property from saxon9-s9api.jar).

The Serializer class has a static class (Property) that has a number of
constants in it,
with names like ‘METHOD’ and ‘INDENT’. See
http://www.oxygenxml.com/apidoc/saxon-9.2/net/sf/saxon/s9api/Serializer.html

In java, the constants are referenced as for instance
Serializer.Property.METHOD
I cannot find the jruby construct to access them.

I appreciate your help, Ruud

View this message in context:
http://old.nabble.com/syntax-for-accessing-constant-in-java-static-class-tp30105156p30105156.html
Sent from the JRuby - User mailing list archive at Nabble.com.

Serializer::Property::METHOD should work…

Regards
Roger

Am 01.11.2010 um 15:19 schrieb ruud144:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs