|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.preferences.xmlpersistence.XMLPreferenceDataCache
public class XMLPreferenceDataCache
This class will be used to cache the XML Preference Related Data. This is a singleton class.
XMLPreferenceDataHandler
Method Summary | |
---|---|
void |
addPreference(Preference preference)
Adds a preference to the cache. |
java.util.Collection |
getAllPreferences()
Returns all the preferences from the cache. |
static XMLPreferenceDataCache |
getInstance()
Returns the singleton instance. |
Preference |
getPreference(java.lang.String preferenceId)
Returns a preference from the cache, if present or retuns null. |
boolean |
isXMLLoaded()
If the XML is loaded. |
boolean |
isXMLValidated()
|
java.util.Iterator |
iteratePreferences()
Returns an iterator to all cached preferences. |
void |
setXMLLoaded(boolean isXMLLoaded)
Sets the value to the xml loaded status. |
void |
setXMLValidated(boolean isXMLValidated)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XMLPreferenceDataCache getInstance()
public void addPreference(Preference preference)
key
is already present in the cache, it will
be overwritten.
preference
- The preference to add to the cache.public Preference getPreference(java.lang.String preferenceId)
preferenceId
- The id for which preference is required.
public java.util.Collection getAllPreferences()
Preference
objects.public java.util.Iterator iteratePreferences()
public boolean isXMLLoaded()
public void setXMLLoaded(boolean isXMLLoaded)
isXMLLoaded
- The isXMLLoaded to set.public boolean isXMLValidated()
public void setXMLValidated(boolean isXMLValidated)
isXMLValidated
- The isXMLValidated to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |