LibreOffice Module configmgr (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
configmgr::PropertyNode Class Reference

#include <propertynode.hxx>

Inheritance diagram for configmgr::PropertyNode:
[legend]
Collaboration diagram for configmgr::PropertyNode:
[legend]

Public Member Functions

 PropertyNode (int layer, Type staticType, bool nillable, css::uno::Any value, bool extension)
 
virtual rtl::Reference< Nodeclone (bool keepTemplateName) const override
 
Type getStaticType () const
 
bool isNillable () const
 
css::uno::Any const & getValue (Components &components)
 
void setValue (int layer, css::uno::Any const &value)
 
css::uno::Any * getValuePtr (int layer)
 
void setExternal (int layer, OUString const &descriptor)
 
bool isExtension () const
 
- Public Member Functions inherited from configmgr::Node
virtual Kind kind () const =0
 
virtual rtl::Reference< Nodeclone (bool keepTemplateName) const =0
 
virtual NodeMapgetMembers ()
 
virtual OUString getTemplateName () const
 
virtual void setMandatory (int layer)
 
virtual int getMandatory () const
 
void setLayer (int layer)
 
int getLayer () const
 
void setFinalized (int layer)
 
int getFinalized () const
 
rtl::Reference< NodegetMember (OUString const &name)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

 PropertyNode (PropertyNode const &)=default
 
virtual ~PropertyNode () override
 
virtual Kind kind () const override
 

Private Attributes

Type staticType_
 
bool nillable_
 
bool extension_
 
OUString externalDescriptor_
 
css::uno::Any value_
 

Additional Inherited Members

- Public Types inherited from configmgr::Node
enum  Kind {
  KIND_PROPERTY ,
  KIND_LOCALIZED_PROPERTY ,
  KIND_LOCALIZED_VALUE ,
  KIND_GROUP ,
  KIND_SET ,
  KIND_ROOT
}
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from configmgr::Node
 Node (int layer)
 
 Node (const Node &other)
 
virtual ~Node () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 35 of file propertynode.hxx.

Constructor & Destructor Documentation

◆ PropertyNode() [1/2]

configmgr::PropertyNode::PropertyNode ( int  layer,
Type  staticType,
bool  nillable,
css::uno::Any  value,
bool  extension 
)

Definition at line 38 of file propertynode.cxx.

References value.

Referenced by clone().

◆ PropertyNode() [2/2]

configmgr::PropertyNode::PropertyNode ( PropertyNode const &  )
privatedefault

◆ ~PropertyNode()

configmgr::PropertyNode::~PropertyNode ( )
overrideprivatevirtual

Definition at line 84 of file propertynode.cxx.

Member Function Documentation

◆ clone()

rtl::Reference< Node > configmgr::PropertyNode::clone ( bool  keepTemplateName) const
overridevirtual

Implements configmgr::Node.

Definition at line 45 of file propertynode.cxx.

References PropertyNode().

◆ getStaticType()

Type configmgr::PropertyNode::getStaticType ( ) const
inline

Definition at line 43 of file propertynode.hxx.

References staticType_.

Referenced by configmgr::Access::asProperty(), and configmgr::ChildAccess::setProperty().

◆ getValue()

css::uno::Any const & configmgr::PropertyNode::getValue ( Components components)

◆ getValuePtr()

css::uno::Any * configmgr::PropertyNode::getValuePtr ( int  layer)

Definition at line 71 of file propertynode.cxx.

References externalDescriptor_, configmgr::Node::setLayer(), and value_.

◆ isExtension()

bool configmgr::PropertyNode::isExtension ( ) const
inline

Definition at line 54 of file propertynode.hxx.

References extension_.

Referenced by configmgr::Access::asProperty(), and configmgr::Access::removeByName().

◆ isNillable()

bool configmgr::PropertyNode::isNillable ( ) const
inline

◆ kind()

Node::Kind configmgr::PropertyNode::kind ( ) const
overrideprivatevirtual

Implements configmgr::Node.

Definition at line 86 of file propertynode.cxx.

References configmgr::Node::KIND_PROPERTY.

◆ setExternal()

void configmgr::PropertyNode::setExternal ( int  layer,
OUString const &  descriptor 
)

◆ setValue()

void configmgr::PropertyNode::setValue ( int  layer,
css::uno::Any const &  value 
)

Member Data Documentation

◆ extension_

bool configmgr::PropertyNode::extension_
private

Definition at line 67 of file propertynode.hxx.

Referenced by isExtension().

◆ externalDescriptor_

OUString configmgr::PropertyNode::externalDescriptor_
private

Definition at line 68 of file propertynode.hxx.

Referenced by getValue(), getValuePtr(), setExternal(), and setValue().

◆ nillable_

bool configmgr::PropertyNode::nillable_
private

Definition at line 66 of file propertynode.hxx.

Referenced by getValue(), and isNillable().

◆ staticType_

Type configmgr::PropertyNode::staticType_
private

Definition at line 63 of file propertynode.hxx.

Referenced by getStaticType().

◆ value_

css::uno::Any configmgr::PropertyNode::value_
private

Definition at line 69 of file propertynode.hxx.

Referenced by getValue(), getValuePtr(), and setValue().


The documentation for this class was generated from the following files: