Public:BWmeta service/Java mapping
From YaddaWiki
Service details | |
---|---|
Name | BWmeta |
Code location (relative to SVN root) | projects/dir/bwmeta-core |
Javadoc | |
Contact person | Jakub 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
andList
properties can never returnnull
. Instead, they return an emptyString
,YLanguage.Undetermined
or an emptyList
, respectively.