public class ServiceProperties extends Object implements IServiceProperties
IServiceProperties.
Subclasses may be created as appropriate.| Constructor and Description |
|---|
ServiceProperties() |
ServiceProperties(IServiceProperties sp)
Creates a copy of the given
IServiceProperties |
ServiceProperties(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
Properties |
asProperties() |
boolean |
equals(Object obj) |
Object |
getProperty(String name)
Get property as an Object.
|
byte[] |
getPropertyBytes(String name)
Get property name as byte[].
|
Enumeration |
getPropertyNames()
Get property names.
|
String |
getPropertyString(String name)
Get property name as String.
|
int |
hashCode() |
Object |
setProperty(String name,
Object value)
Set property as Object.
|
Object |
setPropertyBytes(String name,
byte[] value)
Set property as byte [].
|
Object |
setPropertyString(String name,
String value)
Set property as String.
|
int |
size() |
String |
toString() |
public ServiceProperties()
public ServiceProperties(Properties props)
public ServiceProperties(IServiceProperties sp)
IServicePropertiessp - service propertiespublic Enumeration getPropertyNames()
IServicePropertiesgetPropertyNames in interface IServicePropertiesnull.public String getPropertyString(String name)
IServicePropertiesgetPropertyString in interface IServicePropertiesname - the name of the property to return. Must not be null.null if property does
not exist.public byte[] getPropertyBytes(String name)
IServicePropertiesgetPropertyBytes in interface IServicePropertiesname - the name of the property to return. Must not be null.null if property does
not exist.public Object getProperty(String name)
IServicePropertiesnull if there is no property by that
name.getProperty in interface IServicePropertiesname - the name of the property to return. Must not be null.null if there is no
property of given name.public Object setProperty(String name, Object value)
IServicePropertiessetProperty in interface IServicePropertiesname - the property name of the property. Must not be null.value - the property value to associated with the name. Must not be
null.public Object setPropertyBytes(String name, byte[] value)
IServicePropertiessetPropertyBytes in interface IServicePropertiesname - the property name of the property. Must not be null.value - the property value to associated with the name. Must not be
null.public Object setPropertyString(String name, String value)
IServicePropertiessetPropertyString in interface IServicePropertiesname - the property name of the property. Must not be null.value - the property value to associated with the name. Must not be
null.null
if not previously in properties.public boolean equals(Object obj)
equals in interface IServicePropertiesequals in class ObjectObject.equals(Object)public int hashCode()
hashCode in interface IServicePropertieshashCode in class ObjectObject.hashCode()public int size()
size in interface IServicePropertiesDictionary.size()public Properties asProperties()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.