Package com.ibm.msg.client.jms
Interface JmsReadablePropertyContext
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
JmsCapabilityContext,JmsConnection,JmsConnectionFactory,JmsConnectionMetaData,JmsConsumer,JmsContext,JmsDestination,JmsMessageConsumer,JmsMessageProducer,JmsPropertyContext,JmsQueue,JmsQueueBrowser,JmsQueueConnection,JmsQueueConnectionFactory,JmsQueueReceiver,JmsQueueSender,JmsQueueSession,JmsSession,JmsTemporaryQueue,JmsTemporaryTopic,JmsTopic,JmsTopicConnection,JmsTopicConnectionFactory,JmsTopicPublisher,JmsTopicSession,JmsTopicSubscriber,JmsXAConnection,JmsXAConnectionFactory,JmsXAContext,JmsXAQueueConnection,JmsXAQueueConnectionFactory,JmsXAQueueSession,JmsXASession,JmsXATopicConnection,JmsXATopicConnectionFactory,JmsXATopicSession
- All Known Implementing Classes:
Cleanup,com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl,com.ibm.msg.client.jms.admin.JmsDestinationImpl,com.ibm.msg.client.jms.admin.JmsJndiConnectionFactoryImpl,com.ibm.msg.client.jms.admin.JmsJndiDestinationImpl,com.ibm.msg.client.jms.internal.JmsPropertyContextImpl,com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl,MQConnection,MQConnectionFactory,MQConnectionMetaData,MQDestination,MQMessageConsumer,MQMessageProducer,MQQueue,MQQueueBrowser,MQQueueConnection,MQQueueConnectionFactory,MQQueueReceiver,MQQueueSender,MQQueueSession,MQRoot,MQSession,MQTemporaryQueue,MQTemporaryTopic,MQTopic,MQTopicConnection,MQTopicConnectionFactory,MQTopicPublisher,MQTopicSession,MQTopicSubscriber,MQXAConnection,MQXAConnectionFactory,MQXAQueueConnection,MQXAQueueConnectionFactory,MQXAQueueSession,MQXASession,MQXATopicConnection,MQXATopicConnectionFactory,MQXATopicSession
JmsReadablePropertyContext is a read-only collection of properties
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBooleanProperty(String name) Gets the boolean property value with the given name.bytegetByteProperty(String name) Gets the byte property value with the given name.byte[]getBytesProperty(String name) Gets the bytes property value with the given name.chargetCharProperty(String name) Gets the char property value with the given name.doublegetDoubleProperty(String name) Gets the double property value with the given name.floatgetFloatProperty(String name) Gets the float property value with the given name.intgetIntProperty(String name) Gets the int property value with the given name.longgetLongProperty(String name) Gets the long property value with the given name.getObjectProperty(String name) Gets the Object property value with the given name.Gets all properties which have been set on a resource.shortgetShortProperty(String name) Gets the short property value with the given name.getStringProperty(String name) Gets the String property value with the given name.booleanpropertyExists(String name) Indicates whether the specified property exists in the property context.default String
-
Method Details
-
propertyExists
Indicates whether the specified property exists in the property context.- Parameters:
name- the name of the property to check.- Returns:
- true if the property exists, false if it does not.
- Throws:
javax.jms.JMSException- if the name of the property is null.
-
getCharProperty
Gets the char property value with the given name. Throws a JMSException if the value of the property is null.- Parameters:
name- The name of the property to be retrieved.- Returns:
- the char property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Character type.
-
getBooleanProperty
Gets the boolean property value with the given name. Returns false if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the boolean property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Boolean type.
-
getByteProperty
Gets the byte property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the byte property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Byte type.
-
getShortProperty
Gets the short property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the short property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Short type.
-
getIntProperty
Gets the int property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the int property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Integer type.
-
getLongProperty
Gets the long property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the long property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to long type.
-
getFloatProperty
Gets the float property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the float property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Float type.
-
getDoubleProperty
Gets the double property value with the given name. Throws a NumberFormatException if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the double property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to Double type.
-
getStringProperty
Gets the String property value with the given name. Returns null if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the String property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null or if the value can not be converted to String type.
-
getObjectProperty
Gets the Object property value with the given name. Returns null if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the Object property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null.
-
getBytesProperty
Gets the bytes property value with the given name. Returns null if the value of the property is null.- Parameters:
name- the name of the property to be retrieved.- Returns:
- the byte array property value with the given name.
- Throws:
javax.jms.JMSException- if the value of the property is null.
-
getPropertyNames
Gets all properties which have been set on a resource. If no properties have been set, this method returns an empty enumeration.- Returns:
- the Enumeration of all set properties.
- Throws:
javax.jms.JMSException- if an error occurs while enumerating property names.
-
stringifyMe
- Returns:
- string containing class and hashcode
- exclude
-