|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.AbstractPropsContainer
com.cometway.props.ReflectionPropsContainer
public class ReflectionPropsContainer
Provides a reflection-enabled Props container for access to the public fields of an Object.
| Constructor Summary | |
|---|---|
ReflectionPropsContainer()
Creates an instance using itself as the reflected Object. |
|
ReflectionPropsContainer(java.lang.Object objectRef)
Created an instance using the specified Object for reflection. |
|
| Method Summary | |
|---|---|
void |
copy(IPropsContainer ipc)
Copies the public fields from the reflected Object to the specified Props. |
java.util.Enumeration |
enumerateProps()
Returns an Enumeration of public fields from the reflected Object. |
java.lang.Object |
getObjectRef()
Returns a the reflected Object. |
java.lang.Object |
getProperty(java.lang.String key)
Returns the specified public field of the reflected object. |
boolean |
removeProperty(java.lang.String key)
Properties of a reflected object cannot be removed; returns false. |
void |
setObjectRef(java.lang.Object objectRef)
Sets the reflected Object. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the specified public field of the reflected Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionPropsContainer()
public ReflectionPropsContainer(java.lang.Object objectRef)
| Method Detail |
|---|
public java.lang.Object getObjectRef()
public void setObjectRef(java.lang.Object objectRef)
public java.lang.Object getProperty(java.lang.String key)
key - the name of the object to retrieve.
public boolean removeProperty(java.lang.String key)
key - the name of the object to remove.
public void setProperty(java.lang.String key,
java.lang.Object value)
key - the name of the object to add or change.value - a reference to the new object.public void copy(IPropsContainer ipc)
ipc - the container to be copied into.public java.util.Enumeration enumerateProps()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||