I've got a java class that contains several lists of data.
I starts by loading them in from a set of files in a given directory,
thus:

(def dataLoader (new com.politespider.nmod.ProjectLoader))
(. dataLoader  loadProject  "H:/workspace/referenceProject")

This works, I beleive, certainly it appears to. The method loadProject
returns True, which I thought would be shown in repl, but that doesn't
happen. However, that's not the question.

Carrying on with my example, dataLoader now holds several lists, the
one I'm interested in right now is returned by a call to
getEnvironmentParticleSet(). I beleive this means calling something
like

(. dataLoader  getEnvironmentParticleSet)

But what I want is to go through the list that this method returns and
get the name of each particle in the list.

I now that in Java this would be (inside some form of loop)

dataLoader.getEnvironmentParticleSet().get(i).getName();

but I can't seem to find how to translate this into clojure. I don't
need to know how to do the loop, that I can work out. Where I'm stuck
is how to get access to the particle names, as I would in the above
line of Java code.

Can anyone tell me how I might do this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to