java.lang.Object | |
↳ | com.microstrategy.utils.config.ConfigurationSource |
An important requirement is the ability to support loading the xml definition from multiple sources, i.e. from multiple customizations; moreover, for features like saving and reloading it is also necessary to remember where each attribute and element was loaded from. The AbstractConfigurationElement uses the ElementSource for this purpose. This class saves the information relevant to this source, mainly the list of attributes defined in this source. It also allows us to identify whether this ConfigurationElement was originally defined in a source file: isInSource(String sourceKey):boolean returns true only if there is an ConfigurationSource for the given key
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ConfigurationSource(String key, CustomizationInfo c) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object | clone() | ||||||||||
boolean | equals(Object other) | ||||||||||
CustomizationInfo |
getCustomization()
CustomizationInfo where this source is being loaded from.
| ||||||||||
String |
getInitPath()
Initial path where this source was loaded.
| ||||||||||
String | getKey() | ||||||||||
long |
getLastLoaded()
Last modification time when this source was loaded.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isLoaded()
Returns
true is this source is loaded (and available) for its corresponding element. | ||||||||||
void |
load()
Call this method to load back this source into the element.
| ||||||||||
void |
setInitPath(String value)
Initial path where this source is being loaded from.
| ||||||||||
void |
setLastLoaded(long value)
Last modification time when this source was loaded.
| ||||||||||
void |
unload()
Call this method to temporarily unload this source from the element.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
CustomizationInfo where this source is being loaded from. null
if not being loaded as part of a customization.
Initial path where this source was loaded. It returns null if this source was indirectly loaded (e.g. as child node of another configuration file).
Last modification time when this source was loaded.
Returns true
is this source is loaded (and available) for its corresponding element.
Call this method to load back this source into the element.
Initial path where this source is being loaded from. It returns null if this source was indirectly loaded (e.g. as child node of another configuration file).
Last modification time when this source was loaded.
Call this method to temporarily unload this source from the element.