|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IServicePropertiesnull.public java.lang.String getPropertyString(java.lang.String name)
IServiceProperties
getPropertyString in interface IServicePropertiesname - 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 IServicePropertiesname - 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)
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 java.lang.Object setProperty(java.lang.String name,
java.lang.Object value)
IServiceProperties
setProperty 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 java.lang.Object setPropertyBytes(java.lang.String name,
byte[] value)
IServiceProperties
setPropertyBytes 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 java.lang.Object setPropertyString(java.lang.String name,
java.lang.String value)
IServiceProperties
setPropertyString 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(java.lang.Object obj)
equals in interface IServicePropertiesequals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in interface IServicePropertieshashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.Objectpublic int size()
size in interface IServicePropertiesDictionary.size()public java.util.Properties asProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||