Public:BWmeta service/Java mapping

From YaddaWiki

< Public:BWmeta service
Revision as of 10:06, 27 September 2010 by Bolo (Talk | contribs)
Jump to: navigation, search
Service details
NameBWmeta
Code location
(relative to SVN root)
projects/dir/bwmeta-core
Javadoc
Contact personJakub Jurkiewicz

General contracts

  • Every class has a public empty constructor.
  • Every setter and every list adder in every class returns this, which allows chained setting, e.g.:
new YElement()
    .setId("bwmeta1.element.foo")
    .addName(new YName().setText("Foo").setLanguage(YLanguage.English))
    .addDescription(new YDescription().setText("Lorem ipsum").setLanguage(YLanguage.Latin));
  • Every property is protected, but has a public getter and setter.
  • Getters of String, YLanguage and List properties can never return null. Instead, they return an empty String, YLanguage.Undetermined or an empty List, respectively.


Personal tools