... | @@ -126,8 +126,6 @@ class FooBar implements MySimpleInterface { |
... | @@ -126,8 +126,6 @@ class FooBar implements MySimpleInterface { |
|
|
|
|
|
When an object has a "main" many relation with related "things" (objects, parameters, ...), the method names are normalized:
|
|
When an object has a "main" many relation with related "things" (objects, parameters, ...), the method names are normalized:
|
|
|
|
|
|
__Names__
|
|
|
|
|
|
|
|
`get()`
|
|
`get()`
|
|
`set()`
|
|
`set()`
|
|
`has()`
|
|
`has()`
|
... | @@ -150,9 +148,11 @@ The usage of these methods are only allowed when it is clear that there is a mai |
... | @@ -150,9 +148,11 @@ The usage of these methods are only allowed when it is clear that there is a mai |
|
|
|
|
|
For many relations where the convention does not apply, the following methods must be used instead (where XXX is the name of the related thing):
|
|
For many relations where the convention does not apply, the following methods must be used instead (where XXX is the name of the related thing):
|
|
|
|
|
|
| Main Relation | Other Relations |
|
|
Main Relation Other Relations
|
|
| ----- | ----- |
|
|
|
|
|get() |getXXX()|
|
|
`get() ` `getXXX()|`
|
|
|
|
|
|
|
|
|
|
|set() |setXXX()|
|
|
|set() |setXXX()|
|
|
|n/a |replaceXXX()|
|
|
|n/a |replaceXXX()|
|
|
|has() |hasXXX()|
|
|
|has() |hasXXX()|
|
... | | ... | |