|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.ReadOnlyPropsContainer
public class ReadOnlyPropsContainer
Use this class to allow read only access to a IPropsContainer.
| Constructor Summary | |
|---|---|
ReadOnlyPropsContainer(IPropsContainer container)
|
|
| Method Summary | |
|---|---|
void |
copy(IPropsContainer ipc)
copy the properties in the current container to another container |
java.util.Enumeration |
enumerateProps()
list the properties in the current container |
java.lang.Object |
getProperty(java.lang.String key)
Returns a reference to a named object. |
boolean |
removeProperty(java.lang.String key)
Throws a RuntimeException when called: This operation is illegal. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Throws a RuntimeException when called: This operation is illegal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadOnlyPropsContainer(IPropsContainer container)
| Method Detail |
|---|
public void copy(IPropsContainer ipc)
IPropsContainer
copy in interface IPropsContaineripc - the container to be copied into.public java.util.Enumeration enumerateProps()
IPropsContainer
enumerateProps in interface IPropsContainerpublic java.lang.Object getProperty(java.lang.String key)
IPropsContainer
getProperty in interface IPropsContainerkey - the name of the object to retrieve.
public boolean removeProperty(java.lang.String key)
removeProperty in interface IPropsContainerkey - the name of the object to remove.
public void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface IPropsContainerkey - the name of the object to add or change.value - a reference to the new object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||