PropertyManager

This a python binding to the C++ class Mantid::Kernel::PropertyManager.

bases: mantid.kernel.IPropertyManager

class mantid.kernel.PropertyManager((object)arg1)
__init__((object)arg1) → None

__init__( (object)arg1, (dict)arg2) -> object

declareProperty((IPropertyManager)self, (str)name, (object)value) → None :

Create a new named property

existsProperty((IPropertyManager)self, (str)name) → bool :

Returns whether a property exists

get((IPropertyManager)self, (str)name, (object)value) → Property :

Returns the property of the given name. Use .value to give the value. If property with given name does not exist, returns given default value.

getProperties((IPropertyManager)self) → std_vector_property :

Returns the list of properties managed by this object

getProperty((IPropertyManager)self, (str)name) → Property :

Returns the property of the given name. Use .value to give the value

getPropertyValue((IPropertyManager)self, (str)name) → str :

Returns a string representation of the named property’s value

has_key((IPropertyManager)self, (str)name) → bool :

Returns whether a property exists

keys((IPropertyManager)self) → list
propertyCount((IPropertyManager)self) → int :

Returns the number of properties being managed

setProperty((IPropertyManager)self, (str)name, (object)value) → None :

Set the value of the named property

setPropertyGroup((IPropertyManager)self, (str)name, (str)group) → None :

Set the group for a given property

setPropertySettings((IPropertyManager)self, (str)name, (IPropertySettings)settingsManager) → None :

Assign the given IPropertySettings object to the named property

setPropertyValue((IPropertyManager)self, (str)name, (str)value) → None :

Set the value of the named property via a string

values((IPropertyManager)self) → std_vector_property :

Returns the list of properties managed by this object