Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object. More...
#include <src/main/activemq/util/ActiveMQProperties.h>

Public Member Functions | |
| ActiveMQProperties () | |
| virtual | ~ActiveMQProperties () |
| virtual decaf::util::Properties & | getProperties () |
| virtual const decaf::util::Properties & | getProperties () const |
| virtual void | setProperties (decaf::util::Properties &props) |
| virtual int | size () const |
| Returns the current count of all the Properties that are currently stored in the Properties object. | |
| virtual bool | isEmpty () const |
| Returns true if the properties object is empty. | |
| virtual const char * | getProperty (const std::string &name) const |
| Looks up the value for the given property. | |
| virtual std::string | getProperty (const std::string &name, const std::string &defaultValue) const |
| Looks up the value for the given property. | |
| virtual void | setProperty (const std::string &name, const std::string &value) |
| Sets the value for a given property. | |
| virtual bool | hasProperty (const std::string &name) const |
| Check to see if the Property exists in the set. | |
| virtual std::string | remove (const std::string &name) |
| Removes the property with the given name. | |
| virtual std::vector< std::string > | propertyNames () const |
| Returns a vector containing all the names of the properties currently stored in the Properties object. | |
| virtual std::vector< std::pair < std::string, std::string > > | toArray () const |
| Method that serializes the contents of the property map to an array. | |
| virtual void | copy (const CMSProperties *source) |
| virtual CMSProperties * | clone () const |
| Clones this object. | |
| virtual void | clear () |
| Clears all properties from the map. | |
| virtual std::string | toString () const |
| Formats the contents of the Properties Object into a string that can be logged, etc. | |
Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object.
| activemq::util::ActiveMQProperties::ActiveMQProperties | ( | ) |
| virtual activemq::util::ActiveMQProperties::~ActiveMQProperties | ( | ) | [virtual] |
| virtual void activemq::util::ActiveMQProperties::clear | ( | ) | [inline, virtual] |
Clears all properties from the map.
Implements cms::CMSProperties.
| virtual CMSProperties* activemq::util::ActiveMQProperties::clone | ( | ) | const [virtual] |
| virtual void activemq::util::ActiveMQProperties::copy | ( | const CMSProperties * | source | ) | [virtual] |
| virtual const decaf::util::Properties& activemq::util::ActiveMQProperties::getProperties | ( | ) | const [inline, virtual] |
| virtual decaf::util::Properties& activemq::util::ActiveMQProperties::getProperties | ( | ) | [inline, virtual] |
| virtual std::string activemq::util::ActiveMQProperties::getProperty | ( | const std::string & | name, | |
| const std::string & | defaultValue | |||
| ) | const [inline, virtual] |
Looks up the value for the given property.
| name | the name of the property to be looked up. | |
| defaultValue | The value to be returned if the given property does not exist. |
name, if it exists, otherwise the defaultValue. Implements cms::CMSProperties.
| virtual const char* activemq::util::ActiveMQProperties::getProperty | ( | const std::string & | name | ) | const [inline, virtual] |
Looks up the value for the given property.
| name | The name of the property to be looked up. |
Implements cms::CMSProperties.
| virtual bool activemq::util::ActiveMQProperties::hasProperty | ( | const std::string & | name | ) | const [inline, virtual] |
Check to see if the Property exists in the set.
| name | the name of the property to check |
Implements cms::CMSProperties.
| virtual bool activemq::util::ActiveMQProperties::isEmpty | ( | ) | const [inline, virtual] |
Returns true if the properties object is empty.
Implements cms::CMSProperties.
| virtual std::vector<std::string> activemq::util::ActiveMQProperties::propertyNames | ( | ) | const [inline, virtual] |
Returns a vector containing all the names of the properties currently stored in the Properties object.
Implements cms::CMSProperties.
| virtual std::string activemq::util::ActiveMQProperties::remove | ( | const std::string & | name | ) | [inline, virtual] |
Removes the property with the given name.
If the property existed in the collection then it is removed and returned, otherwise an empty string is returned.
| name | the name of the property to be removed. |
Implements cms::CMSProperties.
| virtual void activemq::util::ActiveMQProperties::setProperties | ( | decaf::util::Properties & | props | ) | [inline, virtual] |
| virtual void activemq::util::ActiveMQProperties::setProperty | ( | const std::string & | name, | |
| const std::string & | value | |||
| ) | [inline, virtual] |
Sets the value for a given property.
If the property already exists, overwrites the value.
| name | The name of the value to be written. | |
| value | The value to be written. |
Implements cms::CMSProperties.
| virtual int activemq::util::ActiveMQProperties::size | ( | ) | const [inline, virtual] |
Returns the current count of all the Properties that are currently stored in the Properties object.
Implements cms::CMSProperties.
| virtual std::vector<std::pair<std::string, std::string> > activemq::util::ActiveMQProperties::toArray | ( | ) | const [inline, virtual] |
Method that serializes the contents of the property map to an array.
Implements cms::CMSProperties.
| virtual std::string activemq::util::ActiveMQProperties::toString | ( | ) | const [inline, virtual] |
Formats the contents of the Properties Object into a string that can be logged, etc.
Implements cms::CMSProperties.
1.6.1