Difference between revisions of "Documentation/DevGuide/AppendixA/Attributes"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Appendix)
m (FINAL VERSION FOR L10N)
 
(One intermediate revision by the same user 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 18: Line 19:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/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).
Personal tools
In other languages