(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: beans ::

interface XHierarchicalPropertySet
Description
provides information about and access to the a hierarchy of properties from an implementation.

Usually an object that implements this interface also implements XPropertySet and at least some of the properties have subproperties.

This interface allows direct access to subsubproperties, ... up to an arbitrary nesting depth. Often the intermediate elements of the hierarchy implement XProperty.

Each implementation specifies how the hierarchical property names, that are used to access the elements of the hierarchy, are formed.

Commonly a notation similar to filesystem pathes (separated by '/' slashes) or nested module names (separated by dots '.' or '::') is used.


Methods' Summary
getHierarchicalPropertySetInfo retrieve information about the hierarchy of properties  
setHierarchicalPropertyValue sets the value of the property with the specified nested name.  
getHierarchicalPropertyValue  
Methods' Details
getHierarchicalPropertySetInfo
XHierarchicalPropertySetInfo
getHierarchicalPropertySetInfo();

Description
retrieve information about the hierarchy of properties
Returns
the XHierarchicalPropertySetInfo interface, which describes the property hierarchy of the object which supplies this interface.
Returns
NULL if the implementation cannot or will not provide information about the properties; otherwise the interface XHierarchicalPropertySetInfo is returned.
setHierarchicalPropertyValue
void
setHierarchicalPropertyValue( [in] string  aHierarchicalPropertyName,
[in] any  aValue )
raises( UnknownPropertyException,
PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::WrappedTargetException );

Description
sets the value of the property with the specified nested name.
Parameter aHierarchicalPropertyName
This parameter specifies the name of the property.
Parameter aValue
This parameter specifies the new value for the property.
Throws
UnknownPropertyException if the property does not exist.
Throws
PropertyVetoException if the property is constrained and the change is vetoed by a XVetoableChangeListener.
Throws
com::sun::star::uno::lang::IllegalArgumentException if aValue is not a legal value for this property or if aHierarchicalPropertyName is not a well-formed nested name for this hierarchy. An implementation is not required to detect the latter condition.
Throws
com::sun::star::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into that ::com::sun::star::lang::WrappedTargetException.
See also
XPropertySet::setPropertyValue
getHierarchicalPropertyValue
any
getHierarchicalPropertyValue( [in] string  aHierarchicalPropertyName )
raises( UnknownPropertyException,
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::WrappedTargetException );

Returns
the value of the property with the specified nested name.
Parameter aHierarchicalPropertyName
This parameter specifies the name of the property.
Throws
UnknownPropertyException if the property does not exist.
Throws
com::sun::star::uno::lang::IllegalArgumentException if aHierarchicalPropertyName is not a well-formed nested name for this hierarchy. An implementation is not required to detect this condition.
Throws
com::sun::star::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into that ::com::sun::star::lang::WrappedTargetException.
See also
XPropertySet::getPropertyValue
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.