|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.discovery.ServiceProperties
public class ServiceProperties
Service properties implementation class for IServiceProperties
.
Subclasses may be created as appropriate.
Constructor Summary | |
---|---|
ServiceProperties()
|
|
ServiceProperties(IServiceProperties sp)
Creates a copy of the given IServiceProperties |
|
ServiceProperties(java.util.Properties props)
|
Method Summary | |
---|---|
java.util.Properties |
asProperties()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getProperty(java.lang.String name)
Get property as an Object. |
byte[] |
getPropertyBytes(java.lang.String name)
Get property name as byte[]. |
java.util.Enumeration |
getPropertyNames()
Get property names. |
java.lang.String |
getPropertyString(java.lang.String name)
Get property name as String. |
int |
hashCode()
|
java.lang.Object |
setProperty(java.lang.String name,
java.lang.Object value)
Set property as Object. |
java.lang.Object |
setPropertyBytes(java.lang.String name,
byte[] value)
Set property as byte []. |
java.lang.Object |
setPropertyString(java.lang.String name,
java.lang.String value)
Set property as String. |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceProperties()
public ServiceProperties(java.util.Properties props)
public ServiceProperties(IServiceProperties sp)
IServiceProperties
sp
- Method Detail |
---|
public java.util.Enumeration getPropertyNames()
IServiceProperties
getPropertyNames
in interface IServiceProperties
null
.public java.lang.String getPropertyString(java.lang.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(java.lang.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 java.lang.Object getProperty(java.lang.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 java.lang.Object setProperty(java.lang.String name, java.lang.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 java.lang.Object setPropertyBytes(java.lang.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 java.lang.Object setPropertyString(java.lang.String name, java.lang.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(java.lang.Object obj)
equals
in interface IServiceProperties
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in interface IServiceProperties
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
size
in interface IServiceProperties
Dictionary.size()
public java.util.Properties asProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |