Difference between revisions of "Documentation/DevGuide/AppendixA/Attributes"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/AppendixA/Methods | |NextPage=Documentation/DevGuide/AppendixA/Methods | ||
}} | }} | ||
− | {{DISPLAYTITLE:Attributes}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixA/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Attributes}} | ||
Attributes are used to access data members of objects through an interface. | Attributes are used to access data members of objects through an interface. | ||
Line 17: | Line 18: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category: Appendix]] | + | |
+ | [[Category:Documentation/Developer's Guide/Appendix]] |
Latest revision as of 09:00, 18 May 2009
Attributes are used to access data members of objects through an interface.
Naming
Attributes are defined in interfaces as get and optional set methods. Although UNOIDL knows attributes for compatibility reasons, this feature is not used. The attribute identifier begins with a capital letter. The mixed upper and lower case method is used to separate single words. Only letters and numbers are allowed with no underscores, for example, getParent()
and setParent()
.
Usage
Attributes are used to express structural relationships, with and without lifetime coupling. For scripting languages, the attributes are accessed as properties.
Content on this page is licensed under the Public Documentation License (PDL). |