Properties

From Sunhill Framework Documentation
Revision as of 09:02, 11 September 2024 by Klaus (talk | contribs) (Rewrite of article)

A property is a logical piece of information. The property class capsulates everything that has to do with type, validation, semantic meaning and access rights. The data itself is retrieved and stored to a storage.

Reading a property value

A typical read process would be:

  1. The property is called to return a value
  2. The property checks if the current user is allowed to read the information
  3. The property fetches the value from the connected storage
  4. Optional it formats the output to a human readable form

Writing a property value

A typical write/modify process would be:

  1. The property is called to write/modify a value
  2. The property checks if the current user is allowed to write or modify the information
  3. The property checks if the given value is valid for the type and semantic meaning of the property
  4. The property passes the value to the storage