Some quick examples:
aBook.valueForKey("title")
is equivalent to
aBook.getTitle()
aBook.takeValueForKey("Les miserables", "title")
is equivalent to
aBook.setTitle("Les miserables")
aBook.valueForKeyPath("author.lastName")
is equivalent to
aBook.getAuthor().getLastName()
aBook.takeValueForKeyPath("Hugo", "author.lastName")
is
equivalent to aBook.getAuthor().setLastName("Hugo")
aBook.valuesForKeys(['title', 'price'])
is equivalent to
[aBook.getTitle(), aBook.getPrice()]
Of course, the objects' properties may always still be accessed using the getters and setters of your python objects,
Comments are welcome: Sebastien Bigaret / Modeling Home Page