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)
IServiceProperties
sp
- service propertiespublic Enumeration getPropertyNames()
IServiceProperties
getPropertyNames
in interface IServiceProperties
null
.public String getPropertyString(String name)
IServiceProperties
getPropertyString
in interface IServiceProperties
name
- the name of the property to return. Must not be null
.null
if property does
not exist.public byte[] getPropertyBytes(String name)
IServiceProperties
getPropertyBytes
in interface IServiceProperties
name
- the name of the property to return. Must not be null
.null
if property does
not exist.public Object getProperty(String name)
IServiceProperties
null
if there is no property by that
name.getProperty
in interface IServiceProperties
name
- 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)
IServiceProperties
setProperty
in interface IServiceProperties
name
- 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)
IServiceProperties
setPropertyBytes
in interface IServiceProperties
name
- 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)
IServiceProperties
setPropertyString
in interface IServiceProperties
name
- 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 IServiceProperties
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in interface IServiceProperties
hashCode
in class Object
Object.hashCode()
public int size()
size
in interface IServiceProperties
Dictionary.size()
public Properties asProperties()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.