activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r958763 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/commands/ActiveMQMapMessage.cpp activemq/commands/ActiveMQMapMessage.h cms/MapMessage.h
Date Mon, 28 Jun 2010 21:59:23 GMT
Author: tabish
Date: Mon Jun 28 21:59:23 2010
New Revision: 958763

URL: http://svn.apache.org/viewvc?rev=958763&view=rev
Log:
fix for: https://issues.apache.org/activemq/browse/AMQCPP-300

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp?rev=958763&r1=958762&r2=958763&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
Mon Jun 28 21:59:23 2010
@@ -131,7 +131,7 @@ void ActiveMQMapMessage::beforeMarshal( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-PrimitiveMap& ActiveMQMapMessage::getMap() throw ( NullPointerException ) {
+PrimitiveMap& ActiveMQMapMessage::getMap() {
 
     try{
 
@@ -144,8 +144,7 @@ PrimitiveMap& ActiveMQMapMessage::getMap
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const PrimitiveMap& ActiveMQMapMessage::getMap() const
-    throw ( decaf::lang::exceptions::NullPointerException ) {
+const PrimitiveMap& ActiveMQMapMessage::getMap() const {
 
     try{
 
@@ -158,8 +157,7 @@ const PrimitiveMap& ActiveMQMapMessage::
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::checkMapIsUnmarshalled() const
-    throw ( decaf::lang::exceptions::NullPointerException ) {
+void ActiveMQMapMessage::checkMapIsUnmarshalled() const {
 
     try {
 
@@ -192,7 +190,16 @@ void ActiveMQMapMessage::checkMapIsUnmar
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<std::string> ActiveMQMapMessage::getMapNames() const throw ( cms::CMSException
) {
+bool ActiveMQMapMessage::isEmpty() const {
+
+    try{
+        return getMap().isEmpty();
+    }
+    AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::vector<std::string> ActiveMQMapMessage::getMapNames() const {
 
     try{
         return getMap().keySet();
@@ -201,7 +208,7 @@ std::vector<std::string> ActiveMQMapMess
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ActiveMQMapMessage::itemExists( const std::string& name ) const throw ( cms::CMSException
) {
+bool ActiveMQMapMessage::itemExists( const std::string& name ) const {
 
     try{
         return getMap().containsKey( name );
@@ -210,8 +217,7 @@ bool ActiveMQMapMessage::itemExists( con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ActiveMQMapMessage::getBoolean( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+bool ActiveMQMapMessage::getBoolean( const std::string& name ) const {
 
     try{
         return getMap().getBool( name );
@@ -222,8 +228,7 @@ bool ActiveMQMapMessage::getBoolean( con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setBoolean( const std::string& name, bool value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setBoolean( const std::string& name, bool value ) {
 
     failIfReadOnlyBody();
     try{
@@ -233,8 +238,7 @@ void ActiveMQMapMessage::setBoolean( con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char ActiveMQMapMessage::getByte( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+unsigned char ActiveMQMapMessage::getByte( const std::string& name ) const {
 
     try{
         return getMap().getByte( name );
@@ -245,8 +249,7 @@ unsigned char ActiveMQMapMessage::getByt
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setByte( const std::string& name, unsigned char value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setByte( const std::string& name, unsigned char value ) {
 
     failIfReadOnlyBody();
     try{
@@ -256,8 +259,7 @@ void ActiveMQMapMessage::setByte( const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> ActiveMQMapMessage::getBytes( const std::string& name
) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+std::vector<unsigned char> ActiveMQMapMessage::getBytes( const std::string& name
) const {
 
     try{
         return getMap().getByteArray( name );
@@ -269,8 +271,7 @@ std::vector<unsigned char> ActiveMQMapMe
 
 ////////////////////////////////////////////////////////////////////////////////
 void ActiveMQMapMessage::setBytes( const std::string& name,
-                                   const std::vector<unsigned char>& value )
-                                       throw( cms::MessageNotWriteableException, cms::CMSException
) {
+                                   const std::vector<unsigned char>& value ) {
 
     failIfReadOnlyBody();
     try{
@@ -280,8 +281,7 @@ void ActiveMQMapMessage::setBytes( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-char ActiveMQMapMessage::getChar( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+char ActiveMQMapMessage::getChar( const std::string& name ) const {
 
     try{
         return getMap().getChar( name );
@@ -292,8 +292,7 @@ char ActiveMQMapMessage::getChar( const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setChar( const std::string& name, char value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setChar( const std::string& name, char value ) {
 
     failIfReadOnlyBody();
     try{
@@ -303,8 +302,7 @@ void ActiveMQMapMessage::setChar( const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double ActiveMQMapMessage::getDouble( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+double ActiveMQMapMessage::getDouble( const std::string& name ) const {
 
     try{
         return getMap().getDouble( name );
@@ -315,8 +313,7 @@ double ActiveMQMapMessage::getDouble( co
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setDouble( const std::string& name, double value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setDouble( const std::string& name, double value ) {
 
     failIfReadOnlyBody();
     try{
@@ -326,8 +323,7 @@ void ActiveMQMapMessage::setDouble( cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float ActiveMQMapMessage::getFloat( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+float ActiveMQMapMessage::getFloat( const std::string& name ) const {
 
     try{
         return getMap().getFloat( name );
@@ -338,8 +334,7 @@ float ActiveMQMapMessage::getFloat( cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setFloat( const std::string& name, float value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setFloat( const std::string& name, float value ) {
 
     failIfReadOnlyBody();
     try{
@@ -349,8 +344,7 @@ void ActiveMQMapMessage::setFloat( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ActiveMQMapMessage::getInt( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+int ActiveMQMapMessage::getInt( const std::string& name ) const {
 
     try{
         return getMap().getInt( name );
@@ -361,8 +355,7 @@ int ActiveMQMapMessage::getInt( const st
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setInt( const std::string& name, int value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setInt( const std::string& name, int value ) {
 
     failIfReadOnlyBody();
     try{
@@ -372,8 +365,7 @@ void ActiveMQMapMessage::setInt( const s
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long ActiveMQMapMessage::getLong( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+long long ActiveMQMapMessage::getLong( const std::string& name ) const {
 
     try{
         return getMap().getLong( name );
@@ -384,8 +376,7 @@ long long ActiveMQMapMessage::getLong( c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setLong( const std::string& name, long long value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setLong( const std::string& name, long long value ) {
 
     failIfReadOnlyBody();
     try{
@@ -395,8 +386,7 @@ void ActiveMQMapMessage::setLong( const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short ActiveMQMapMessage::getShort( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+short ActiveMQMapMessage::getShort( const std::string& name ) const {
 
     try{
         return getMap().getShort( name );
@@ -407,8 +397,7 @@ short ActiveMQMapMessage::getShort( cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setShort( const std::string& name, short value )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setShort( const std::string& name, short value ) {
 
     failIfReadOnlyBody();
     try{
@@ -418,8 +407,7 @@ void ActiveMQMapMessage::setShort( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string ActiveMQMapMessage::getString( const std::string& name ) const
-    throw( cms::MessageFormatException, cms::CMSException ) {
+std::string ActiveMQMapMessage::getString( const std::string& name ) const {
 
     try{
         return getMap().getString( name );
@@ -430,8 +418,7 @@ std::string ActiveMQMapMessage::getStrin
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQMapMessage::setString( const std::string& name, const std::string& value
)
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQMapMessage::setString( const std::string& name, const std::string& value
) {
 
     failIfReadOnlyBody();
     try{

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h?rev=958763&r1=958762&r2=958763&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
Mon Jun 28 21:59:23 2010
@@ -55,6 +55,7 @@ namespace commands{
     public:
 
         ActiveMQMapMessage();
+
         virtual ~ActiveMQMapMessage() throw();
 
         virtual unsigned char getDataStructureType() const;
@@ -123,303 +124,139 @@ namespace commands{
     public:   // CMS MapMessage
 
         /**
-         * Returns an Enumeration of all the names in the MapMessage
-         * object.
-         *
-         * @return STL Vector of String values, each of which is the
-         *         name of an item in the MapMessage
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
+         * {@inheritDoc}
          */
-        virtual std::vector< std::string > getMapNames() const throw( cms::CMSException
);
+        virtual bool isEmpty() const;
 
         /**
-         * Indicates whether an item exists in this MapMessage object.
-         *
-         * @param name
-         *      String name of the Object in question
-         * @return boolean value indicating if the name is in the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
+         * {@inheritDoc}
          */
-        virtual bool itemExists( const std::string& name ) const throw( cms::CMSException
);
+        virtual std::vector< std::string > getMapNames() const;
 
         /**
-         * Returns the Boolean value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatExceptio - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual bool getBoolean( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual bool itemExists( const std::string& name ) const;
 
         /**
-         * Sets a boolean value with the specified name into the Map.
-         *
-         * @param name
-         *      the name of the boolean
-         * @param value
-         *      the boolean value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setBoolean( const std::string& name, bool value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual bool getBoolean( const std::string& name ) const;
 
         /**
-         * Returns the Byte value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual unsigned char getByte( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setBoolean( const std::string& name, bool value );
 
         /**
-         * Sets a Byte value with the specified name into the Map.
-         *
-         * @param name
-         *      the name of the Byte
-         * @param value
-         *      the Byte value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setByte( const std::string& name, unsigned char value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual unsigned char getByte( const std::string& name ) const;
 
         /**
-         * Returns the Bytes value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual std::vector<unsigned char> getBytes( const std::string& name )
const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setByte( const std::string& name, unsigned char value );
 
         /**
-         * Sets a Bytes value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Bytes
-         * @param value
-         *      The Bytes value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setBytes( const std::string& name,
-                               const std::vector<unsigned char>& value )
-                                    throw( cms::MessageNotWriteableException, cms::CMSException
);
+        virtual std::vector<unsigned char> getBytes( const std::string& name )
const;
 
         /**
-         * Returns the Char value of the Specified name
-         *
-         * @param name
-         *      name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual char getChar( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setBytes( const std::string& name, const std::vector<unsigned
char>& value );
 
         /**
-         * Sets a Char value with the specified name into the Map.
-         *
-         * @param name
-         *      the name of the Char
-         * @param value
-         *      the Char value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setChar( const std::string& name, char value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual char getChar( const std::string& name ) const;
 
         /**
-         * Returns the Double value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual double getDouble( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setChar( const std::string& name, char value );
 
         /**
-         * Sets a Double value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Double
-         * @param value
-         *      The Double value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setDouble( const std::string& name, double value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual double getDouble( const std::string& name ) const;
 
         /**
-         * Returns the Float value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual float getFloat( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setDouble( const std::string& name, double value );
 
         /**
-         * Sets a Float value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Float
-         * @param value
-         *      The Float value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setFloat( const std::string& name, float value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual float getFloat( const std::string& name ) const;
 
         /**
-         * Returns the Int value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual int getInt( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setFloat( const std::string& name, float value );
 
         /**
-         * Sets a Int value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Int
-         * @param value
-         *      The Int value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setInt( const std::string& name, int value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual int getInt( const std::string& name ) const;
 
         /**
-         * Returns the Long value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual long long getLong( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setInt( const std::string& name, int value );
 
         /**
-         * Sets a Long value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Long
-         * @param value
-         *      The Long value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setLong( const std::string& name, long long value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual long long getLong( const std::string& name ) const;
 
         /**
-         * Returns the Short value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual short getShort( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setLong( const std::string& name, long long value );
 
         /**
-         * Sets a Short value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the Short
-         * @param value
-         *      The Short value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setShort( const std::string& name, short value )
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual short getShort( const std::string& name ) const;
 
         /**
-         * Returns the String value of the Specified name
-         *
-         * @param name
-         *      Name of the value to fetch from the map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageFormatException - if this type conversion is invalid.
+         * {@inheritDoc}
          */
-        virtual std::string getString( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException );
+        virtual void setShort( const std::string& name, short value );
 
         /**
-         * Sets a String value with the specified name into the Map.
-         *
-         * @param name
-         *      The name of the String
-         * @param value
-         *      The String value to set in the Map
-         *
-         * @throws CMSException - if the operation fails due to an internal error.
-         * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
+         * {@inheritDoc}
          */
-        virtual void setString( const std::string& name, const std::string& value
)
-            throw( cms::MessageNotWriteableException, cms::CMSException );
+        virtual std::string getString( const std::string& name ) const;
+
+        /**
+         * {@inheritDoc}
+         */
+        virtual void setString( const std::string& name, const std::string& value
);
 
     protected:
 
         /**
          * Fetches a reference to this objects PrimitiveMap, if one needs
          * to be created or unmarshaled, this will perform the correct steps.
-         * @returns reference to a PrimtiveMap.
+         *
+         * @returns reference to a PrimtiveMap;
+         *
+         * @throws NullPointerException if the internal Map is Null.
          */
-        util::PrimitiveMap& getMap() throw ( decaf::lang::exceptions::NullPointerException
);
-        const util::PrimitiveMap& getMap() const throw ( decaf::lang::exceptions::NullPointerException
);
+        util::PrimitiveMap& getMap();
+        const util::PrimitiveMap& getMap() const;
 
         /**
          * Performs the unmarshal on the Map if needed, otherwise just returns
-         */
-        virtual void checkMapIsUnmarshalled() const
-            throw ( decaf::lang::exceptions::NullPointerException );
+         *
+         * @throws NullPointerException if the internal Map is Null.
+s         */
+        virtual void checkMapIsUnmarshalled() const;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h?rev=958763&r1=958762&r2=958763&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h Mon Jun 28 21:59:23
2010
@@ -74,6 +74,15 @@ namespace cms{
         virtual ~MapMessage() throw() {}
 
         /**
+         * Returns true if there are no values stored in the MapMessage body.
+         *
+         * @returns true if the body of the MapMessage contains no elements.
+         *
+         * @throws CMSException if the operation fails due to an internal error.
+         */
+        virtual bool isEmpty() const = 0;
+
+        /**
          * Returns an Enumeration of all the names in the MapMessage
          * object.
          *



Mime
View raw message