|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.parameterdatabase.ParameterDatabase
Field Summary | |
protected Hashtable |
database
The hashtable which contains all of the parameters. |
protected LinkedList |
databaseListeners
This list contains all of the database listeners. |
Constructor Summary | |
ParameterDatabase()
Constructor creates the hashtable to hold all of the parameters. |
|
ParameterDatabase(int size)
Constructor creates the hashtable of the given initial size to hold all of the parameters. |
Method Summary | |
void |
addDatabaseListener(DatabaseListener listener)
Add a database listener. |
boolean |
addParameter(String parameterName,
Object value,
Iterator iterator,
PropertyChangeListener listener)
Add a parameter to the database. |
boolean |
addParameter(String parameterName,
Object value,
Iterator iterator,
PropertyChangeListener listener,
boolean overwrite)
Add a parameter to the database. |
void |
clear()
Completely clear this parameter database. |
Hashtable |
cloneLocalParameters(Object object)
Return a hash table in which the keys are the parameter names and the values are clones of those values in the database. |
protected Object |
cloneObject(Object originalObject)
This will "clone" the given object. |
void |
firePropertyChange(String parameterName,
ParameterValue parameterValue)
Send off the property change event. |
String[] |
getCurrentParameterSet(Iterator iterator)
Get a string array which contains the names of all parameters defined by this iterator. |
String[] |
getLocalParameterSet(Object object)
Get a string array which gives all of the parameters which are defined locally on the given object. |
Object |
getParameter(String parameterName,
Iterator iterator)
Retrieve a parameter from the database. |
boolean |
isParameterDefined(String parameterName,
Iterator iterator)
Return a boolean indicating whether this parameter is defined using the given iterator to iterate through a set of objects. |
boolean |
isParameterDefined(String parameterName,
Object object)
Return a boolean indicating whether this parameter is defined for the given object. |
boolean |
isParameterLocal(String parameterName,
Iterator iterator)
This method will determine if the given parameter is local. |
void |
purgeEntries(Object object)
Purge all entries based on a particular object. |
void |
purgeParameter(String parameterName,
Iterator iterator)
Purge a parameter from the list of objects defined by the iterator. |
void |
purgePropertyChangeListener(Iterator iterator,
PropertyChangeListener listener)
Purge all references to a particular listener. |
void |
purgePropertyChangeListener(PropertyChangeListener listener)
Purge all references to a particular listener. |
void |
removeDatabaseListener(DatabaseListener listener)
Remove a database listener |
boolean |
removeParameter(String parameterName,
Iterator iterator)
Remove a parameter from the database. |
boolean |
setParameter(String parameterName,
Object value,
Iterator iterator)
Set a parameter. |
boolean |
writeAsXML(XMLWriter xmlWriter,
Hashtable instanceMap)
Write out the entire database as an XML file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Hashtable database
protected LinkedList databaseListeners
Constructor Detail |
public ParameterDatabase()
public ParameterDatabase(int size)
Method Detail |
public boolean isParameterLocal(String parameterName, Iterator iterator)
public Object getParameter(String parameterName, Iterator iterator)
public boolean setParameter(String parameterName, Object value, Iterator iterator)
public boolean isParameterDefined(String parameterName, Iterator iterator)
public boolean isParameterDefined(String parameterName, Object object)
public boolean addParameter(String parameterName, Object value, Iterator iterator, PropertyChangeListener listener)
public boolean addParameter(String parameterName, Object value, Iterator iterator, PropertyChangeListener listener, boolean overwrite)
public boolean removeParameter(String parameterName, Iterator iterator)
public void purgeParameter(String parameterName, Iterator iterator)
public void purgeEntries(Object object)
public void purgePropertyChangeListener(PropertyChangeListener listener)
public void purgePropertyChangeListener(Iterator iterator, PropertyChangeListener listener)
public void clear()
public boolean writeAsXML(XMLWriter xmlWriter, Hashtable instanceMap)
public void firePropertyChange(String parameterName, ParameterValue parameterValue)
public void addDatabaseListener(DatabaseListener listener)
public void removeDatabaseListener(DatabaseListener listener)
public String[] getCurrentParameterSet(Iterator iterator)
public String[] getLocalParameterSet(Object object)
public Hashtable cloneLocalParameters(Object object)
protected Object cloneObject(Object originalObject) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |