public class

ConfigurationSource

extends Object
implements Cloneable
java.lang.Object
   ↳ com.microstrategy.utils.config.ConfigurationSource

Class Overview

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

Summary

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
From class java.lang.Object

Public Constructors

public ConfigurationSource (String key, CustomizationInfo c)

Public Methods

public Object clone ()

public boolean equals (Object other)

public CustomizationInfo getCustomization ()

CustomizationInfo where this source is being loaded from. null if not being loaded as part of a customization.

public String getInitPath ()

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).

public String getKey ()

public long getLastLoaded ()

Last modification time when this source was loaded.

public int hashCode ()

public boolean isLoaded ()

Returns true is this source is loaded (and available) for its corresponding element.

public void load ()

Call this method to load back this source into the element.

public void setInitPath (String value)

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).

public void setLastLoaded (long value)

Last modification time when this source was loaded.

public void unload ()

Call this method to temporarily unload this source from the element.