public class ObjectPropertySet extends Object
| Constructor and Description |
|---|
ObjectPropertySet() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBooleanProperty(String name)
Searches for the property with the specified key in the property list and
converts to Boolean.
|
Double |
getDoubleProperty(String name)
Searches for the property with the specified key in the property list and
converts to Double.
|
Integer |
getIntegerProperty(String name)
Searches for the property with the specified key in the property list and
converts to Integer.
|
Long |
getLongProperty(String name)
Searches for the property with the specified key in the property list and
converts to Long.
|
Object |
getProperty(String name)
Searches for the property with the specified key in the property list.
|
String |
getStringProperty(String name)
Searches for the property with the specified key in the property list and
converts to String.
|
Set<String> |
propertyNames()
Gets the set of property names (keys) currently in the property map.
|
Object |
setBooleanProperty(String name,
boolean value)
Sets a property with the specified key and value in the property list,
wrapping the value as a Boolean.
|
Object |
setDoubleProperty(String name,
double value)
Sets a property with the specified key and value in the property list,
wrapping the value as an Double.
|
Object |
setIntegerProperty(String name,
int value)
Sets a property with the specified key and value in the property list,
wrapping the value as an Integer.
|
Object |
setLongProperty(String name,
long value)
Sets a property with the specified key and value in the property list,
wrapping the value as an Long.
|
void |
setProperties(Map<String,Object> properties)
Bulk set of properties, invokes the HashMap.putAll(Map) method which copies
entries from the provided map to the property map.
|
Object |
setProperty(String name,
Object value)
Sets a property with the specified key and value in the property list.
|
String |
toString() |
public Object getProperty(String name)
name - The name of the property.public Object setProperty(String name, Object value)
put operation to the property
map. Property values should match the expected type listed, such as
Integer and Boolean properties.name - The name of the property.value - The value of the property.public void setProperties(Map<String,Object> properties)
properties - The map from which to copy properties.public Integer getIntegerProperty(String name)
name - The name of the property.public Long getLongProperty(String name)
name - The name of the property.public Double getDoubleProperty(String name)
name - The name of the property.public Boolean getBooleanProperty(String name)
name - The name of the property.public String getStringProperty(String name)
name - The name of the property.public Object setIntegerProperty(String name, int value)
name - The name of the property.value - The value of the property.public Object setLongProperty(String name, long value)
name - The name of the property.value - The value of the property.public Object setDoubleProperty(String name, double value)
name - The name of the property.value - The value of the property.public Object setBooleanProperty(String name, boolean value)
name - The name of the property.value - The value of the property.public Set<String> propertyNames()
Copyright 2004-2021 Solace Corporation. All rights reserved.