public final class TypedProperties extends Object
This implementation follows section 3.5.4 of the Java Message Service specification (Version 1.1 April 12, 2002).
TODO - should have typed property getters and do conversions herein
Constructor and Description |
---|
TypedProperties() |
TypedProperties(TypedProperties other) |
public TypedProperties()
public TypedProperties(TypedProperties other)
public int getMemoryOffset()
public boolean hasInternalProperties()
public void putBooleanProperty(SimpleString key, boolean value)
public void putByteProperty(SimpleString key, byte value)
public void putBytesProperty(SimpleString key, byte[] value)
public void putShortProperty(SimpleString key, short value)
public void putIntProperty(SimpleString key, int value)
public void putLongProperty(SimpleString key, long value)
public void putFloatProperty(SimpleString key, float value)
public void putDoubleProperty(SimpleString key, double value)
public void putSimpleStringProperty(SimpleString key, SimpleString value)
public void putNullValue(SimpleString key)
public void putCharProperty(SimpleString key, char value)
public void putTypedProperties(TypedProperties otherProps)
public Object getProperty(SimpleString key)
public Boolean getBooleanProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Byte getByteProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Character getCharProperty(SimpleString key) throws ActiveMQPropertyConversionException
public byte[] getBytesProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Double getDoubleProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Integer getIntProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Long getLongProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Short getShortProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Float getFloatProperty(SimpleString key) throws ActiveMQPropertyConversionException
public SimpleString getSimpleStringProperty(SimpleString key) throws ActiveMQPropertyConversionException
public Object removeProperty(SimpleString key)
public boolean containsProperty(SimpleString key)
public Set<SimpleString> getPropertyNames()
public void decode(ActiveMQBuffer buffer)
public void encode(ActiveMQBuffer buffer)
public int getEncodeSize()
public void clear()
public boolean isEmpty()
public static void setObjectProperty(SimpleString key, Object value, TypedProperties properties)
key
- The SimpleString keyvalue
- The Object valueproperties
- The typed propertiesCopyright © 2016 JBoss by Red Hat. All rights reserved.