|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.om.FilePropsContainer
public class FilePropsContainer
The FilePropsContainer is a PropsContainer that keeps a file of all the props. When props are changed, a new file is written.
| Constructor Summary | |
|---|---|
FilePropsContainer(java.io.File rootfile)
This creates a new instance of FilePropsContainer that uses the File object given as a parameter. |
|
FilePropsContainer(java.lang.String rootdir)
This creates a new instance of FilePropsContainer that uses the fully qualifed file pathname given by the parameter. |
|
| Method Summary | |
|---|---|
void |
copy(IPropsContainer ipc)
This method copies the property name and value pairs to the IPropsContainer given as a parameter. |
protected void |
dispose()
This method removes the file that stored properties of this Container. |
java.util.Enumeration |
enumerateProps()
This method returns all the property names of the properties in this container. |
protected java.lang.String |
getObjectID()
|
java.lang.Object |
getProperty(java.lang.String s)
This method gets a the cached value of the property name given as the parameter. |
static void |
main(java.lang.String[] args)
|
boolean |
removeProperty(java.lang.String s)
This method removes the property name and the associated value given by the parameter. |
protected void |
setObjectID(java.lang.String newID)
|
void |
setProperty(java.lang.String s,
java.lang.Object o)
This method sets a property value whose name is given by the first parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilePropsContainer(java.lang.String rootdir)
rootdir - This is the fully qualified file path to store properties.public FilePropsContainer(java.io.File rootfile)
rootfile - This is the File which properties will be stored.| Method Detail |
|---|
public java.lang.Object getProperty(java.lang.String s)
getProperty in interface IPropsContainers - This is the name of the property whose value to retrieve.
public boolean removeProperty(java.lang.String s)
removeProperty in interface IPropsContainers - This is the name of the property to remove.
public void setProperty(java.lang.String s,
java.lang.Object o)
setProperty in interface IPropsContainers - This is the name of the property whose value is to be set.o - This is the value which to set the property to.public void copy(IPropsContainer ipc)
copy in interface IPropsContaineripc - The IPropsContainer to copy the properties TO.public java.util.Enumeration enumerateProps()
enumerateProps in interface IPropsContainerprotected void dispose()
protected void setObjectID(java.lang.String newID)
protected java.lang.String getObjectID()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||