company logo

PropertyContext :: value - Get value handle

The property provides the value handle managed by the context or a subordinated value handle.

Return value:  Value handle ( odaba::Value & )

A value handle refers to a (usually) opened value. Invalid value handles may cause an exception.

Implementation overview

Implementation details

  1. Get context value handle
    odaba::Value & PropertyContext  :: value (  )

    The function provides the value handle managed by the context. Typically, the function is called for attributes. When calling the function for a collection property, the value refers to the selected instance in the property handle.

  2. to list
  3. Provide value for property path
    odaba::Value & PropertyContext  :: value ( odaba::String &vSimplePath )

    The function returns the value handle for the property path passed in vSimplePath . The function returns values within a complex data type instance (e.g. direction.city , where city is an attribute of the embedded Address type of direction ) as well as paths that include references ( mother.name , where mother is a reference to a persons mother). You must not pass path properties or operation paths to the function, i.e. the path must not refer to operations or selectors or to iteration operators ( mother(0).name is not a valid path).

    When the property could not be found, the function throws an exception.

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list