|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
public class BaseConfigurationImpl
This class provides the basic methods for all the configuration classes.
Field Summary | |
---|---|
static java.lang.String |
NAME
Name used for notify events. |
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration |
---|
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE |
Constructor Summary | |
---|---|
BaseConfigurationImpl()
Empty constructor |
|
BaseConfigurationImpl(java.lang.Object data)
Constructor providing a TreeMap of attribute/value pairs |
Method Summary | |
---|---|
void |
addListener(MetamergeConfigChangeListener listener)
Registers an object to be notified of change events in this object. |
void |
configurationChanged(MetamergeConfigChange mcc)
|
java.util.TreeMap |
deepClone(java.util.TreeMap inputMap)
Clones the local data structure. |
boolean |
detachFromParent()
This method removes this objects from its parent container. |
java.lang.Object |
expandPropertyValue(java.lang.Object name,
java.lang.Object value)
Substitutes the parameter value with a user property value. |
java.lang.Object |
expandPropertyValue(java.lang.Object name,
java.lang.Object value,
java.util.List<java.lang.String> cref)
Substitutes the parameter value with a user property value. |
boolean |
flatten(java.util.List<java.lang.String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
void |
fromEntry(java.lang.Object entry)
This method populates this object's internal data with the data from a Entry object. |
boolean |
getBooleanParameter(java.lang.Object key,
boolean defval)
Converts value from getParameter call to a boolean |
BaseConfiguration |
getChild(java.lang.Object name)
|
BaseConfiguration |
getChildForPath(java.lang.String path)
This method traverses the child hierarchy (from the top) and returns the configuration object associated with the path. |
java.util.List<java.lang.String> |
getChildNames()
Returns a list of names for all child configuration object |
java.lang.Object |
getClone()
|
java.util.TreeMap |
getData()
Returns a TreeMap with key/value pairs for all local parameters. |
java.util.Iterator<java.lang.String> |
getDataIterator()
Returns an Iterator for all keys in this object. |
boolean |
getDebug()
Returns the debug flag for the object. |
boolean |
getDebug(boolean defval)
Returns the debug flag for the object. |
boolean |
getDebugBreak(boolean defval)
Gets the debugBreak attribute of this object. |
boolean |
getEnabled()
Gets the enabled attribute of this object. |
int |
getFlags()
Returns the flags which determines how the getParameter behaves in terms of inheritance and external properties. |
BaseConfiguration |
getInheritsFrom()
Returns the object from which this object inherits data. |
java.lang.String |
getInheritsFromRef()
Gets the name of the object this object should inherit its values. |
int |
getIntegerParameter(java.lang.Object key,
int defval)
Converts value from getParameter call to an int |
java.util.List<java.lang.String> |
getKeys(int level)
Returns a list of keys in this object. |
boolean |
getLogEnabled()
Gets the log enabled attribute of this object. |
java.lang.String |
getLongName()
|
MetamergeConfig |
getMetamergeConfig()
Gets the MetamergeConfig object to which this object belongs. |
boolean |
getModified()
Returns the modified state of this object. |
javax.naming.Name |
getName()
The object's full name |
java.lang.Object |
getNamespace()
Gets the namespace attribute of the BaseConfiguration object |
java.lang.String |
getNullBehavior()
Gets the nullBehavior attribute of this object. |
java.lang.String |
getNullBehaviorValue()
Gets the nullBehaviorValue attribute of this object. |
java.lang.String |
getNullDefinition()
Gets the nullDefinition attribute of the BaseConfiguration object |
java.lang.String |
getNullDefinitionValue()
Gets the nullDefinitionValue attribute of the BaseConfiguration object |
java.lang.Object |
getParameter(java.lang.Object name)
Returns the value for a given config item. |
java.lang.Object |
getParameter(java.lang.Object name,
java.lang.Object createValue)
Gets the parameter attribute of this config object. |
java.lang.Object |
getParameter(java.lang.Object name,
java.lang.Object createValue,
java.util.List<java.lang.String> cref)
Returns the value for a given config item. |
java.lang.String |
getParameterPropertySource(java.lang.Object name)
Returns the user property name for a parameter. |
java.lang.String |
getParameterPropertySourceFromValue(java.lang.Object value)
|
java.lang.Object |
getParameterRaw(java.lang.Object name)
Returns the value for a given config item without expanding the property value. |
BaseConfiguration |
getParent()
Returns the parent object to which this object belongs. |
java.lang.String |
getParentName()
|
java.lang.String |
getPath()
This method returns the path to this object. |
java.util.List<java.lang.String> |
getReferences(java.util.List<java.lang.String> list)
|
static ResourceHash |
getResHash()
|
java.lang.String |
getScript()
Gets the script attribute of this object. |
java.lang.String |
getScriptEngine()
Gets the ScriptEngine attribute of this object. |
java.lang.String |
getShortName()
Gets the shortName attribute of the BaseConfiguration object. |
java.lang.String |
getStringParameter(java.lang.Object name)
Converts value from getParameter call to a string |
java.util.Map<java.lang.String,java.lang.Object> |
getSubstitutionMap()
|
static boolean |
getUseConfigListeners()
|
boolean |
getUseListeners()
Deprecated. |
java.lang.String |
getUserComment()
|
boolean |
hasParameter(java.lang.Object name)
Returns true if parameter name is local to this object. |
void |
init()
Called after internal data structure is set. |
boolean |
isExpression(java.lang.Object parameter)
|
boolean |
isParameterLocal(java.lang.Object name)
Returns true if the parameter is local and
false if the parameter does not exist either in this
object or in any inherited object. |
java.lang.String |
nameForChild(BaseConfiguration config)
Returns the name for a configuration object |
void |
notifyChange(MetamergeConfigChange event)
Signal a change event to listeners. |
void |
notifyChange(java.lang.Object source,
java.lang.Object key,
int operation)
Notifies listeners for a change event. |
void |
notifyChange(java.lang.Object source,
java.lang.Object key,
int operation,
java.lang.Object userObject)
Notifies listeners for a change event. |
protected void |
performNotifyChange(MetamergeConfigChange mcc)
Notifies all registered listeners for a specified config for a change event. |
boolean |
reattachToParent(int position)
This method reattaches this object to its former parent. |
void |
removeListener(MetamergeConfigChangeListener listener)
Removes a listener from the notification list. |
void |
removeParameter(java.lang.Object name)
Removes a local parameter from this object. |
java.util.List<javax.naming.Binding> |
search(java.lang.String text,
int options,
int sizelimit)
Searches a configuration object and optionally its children for a specific key or value. |
java.util.List<javax.naming.Binding> |
search(java.lang.String text,
int options,
int sizelimit,
java.util.List<javax.naming.Binding> results)
Searches a configuration object and optionally its children for a specific key or value. |
void |
setBooleanParameter(java.lang.Object name,
boolean value)
Calls setParameter converting value to a Boolean object. |
void |
setChild(java.lang.Object name,
BaseConfiguration config)
Associates a configuration object with a name in this configuration |
void |
setData(java.util.TreeMap obj)
Sets the data to be used by this object. |
void |
setDebug(boolean debug)
Sets the debug flag for the object. |
void |
setDebugBreak(boolean debug)
Sets the debugBreak attribute of this object. |
void |
setEnabled(boolean autoStart)
Sets the enabled attribute of this object. |
void |
setFlags(int flags)
Sets flags. |
void |
setInheritsFrom(BaseConfiguration inherit)
Sets the object from which this object inherits data. |
void |
setInheritsFromRef(java.lang.String ref)
Sets the name of the object from which this object should inherit its values. |
void |
setIntegerParameter(java.lang.Object name,
int value)
Calls setParameter converting value to an Integer object. |
void |
setLogEnabled(boolean enabled)
Sets the log enabled attribute of this object. |
void |
setMetamergeConfig(MetamergeConfig mc)
Sets the MetamergeConfig object to which this object belongs. |
void |
setModified(boolean modified)
Sets the modified attribute of the BaseConfiguration object |
void |
setName(javax.naming.Name name)
Sets the name of this object. |
void |
setName(java.lang.String name)
Sets the name attribute of this object. |
void |
setNullBehavior(java.lang.String nb)
Sets the nullBehavior attribute of this object. |
void |
setNullBehaviorValue(java.lang.String nbv)
Sets the nullBehaviorValue attribute of this object. |
void |
setNullDefinition(java.lang.String nb)
Sets the nullDefinition attribute of the BaseConfiguration object |
void |
setNullDefinitionValue(java.lang.String nbv)
Sets the nullDefinitionValue attribute of the BaseConfiguration object |
void |
setParameter(java.lang.Object name,
java.lang.Object value)
Sets the value for a given config item |
void |
setParameter(java.lang.Object name,
java.lang.Object value,
boolean notify)
Sets the value for a given config item, optionally notifying the change. |
void |
setParameterPropertySource(java.lang.Object name,
java.lang.String propertySource)
Associates a parameter name with a user property. |
void |
setParent(BaseConfiguration parent)
Sets the parent object. |
void |
setProtectedParameter(java.lang.Object name,
java.lang.Object value)
Stores the parameter value in the default password store if one is configured. |
void |
setScript(java.lang.String script)
Sets the script attribute of this object. |
void |
setScriptEngine(java.lang.String engine)
Sets the ScriptEngine attribute of this object. |
void |
setStringParameter(java.lang.Object name,
java.lang.String value)
Calls setParameter. |
void |
setSubstitutionMap(java.util.Map<java.lang.String,java.lang.Object> map)
Sets the substitution map for this configuration object |
void |
setupInheritanceChain()
Established the inheritance chain for this object. |
static void |
setUseConfigListeners(boolean value)
Enable/disable the use of configuration listeners in the JVM. |
void |
setUseListeners(boolean value)
Deprecated. |
void |
setUserComment(java.lang.String comment)
Sets the user defined comment string. |
int |
size()
Number of key/value pairs. |
java.lang.Object |
toEntry()
This method returns a Entry object constructed from the internal
data structure. |
java.lang.String |
toString()
Answers a string containing the name of the config. |
void |
updateInheritsFrom(java.lang.String ref)
Sets the name of the object from which this object should inherit its values and calls the setupInheritanceChain to activate the change. |
boolean |
willExpandProps()
|
boolean |
willFlatten(java.util.List<java.lang.String> excludedNS)
|
boolean |
willUseInherited()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
Constructor Detail |
---|
public BaseConfigurationImpl()
public BaseConfigurationImpl(java.lang.Object data)
data
- TreeMap of attribute/value pairsMethod Detail |
---|
public static ResourceHash getResHash()
public void setupInheritanceChain() throws java.lang.Exception
setupInheritanceChain
in interface BaseConfiguration
java.lang.Exception
- if the operation could not be performedpublic BaseConfiguration getInheritsFrom()
getInheritsFrom
in interface BaseConfiguration
public java.lang.String getInheritsFromRef()
getInheritsFromRef
in interface BaseConfiguration
public void setInheritsFrom(BaseConfiguration inherit)
Note: Call this method to setup a temporary (non persistent) object for inheritance.
setInheritsFrom
in interface BaseConfiguration
inherit
- The new inheritsFrom value.public void updateInheritsFrom(java.lang.String ref) throws java.lang.Exception
updateInheritsFrom
in interface BaseConfiguration
ref
- The new inheritsFromRef value
java.lang.Exception
- if the operation does not succeedpublic void setInheritsFromRef(java.lang.String ref)
setInheritsFromRef
in interface BaseConfiguration
ref
- The new inheritsFromRef valuepublic boolean getModified()
getModified
in interface BaseConfiguration
public void setModified(boolean modified)
setModified
in interface BaseConfiguration
modified
- The new modified value@Deprecated public void setUseListeners(boolean value)
setUseListeners
in interface BaseConfiguration
value
- true
indicates using event listeners;
false
- not using@Deprecated public boolean getUseListeners()
getUseListeners
in interface BaseConfiguration
true
if event listeners are used; otherwise
false
.public static void setUseConfigListeners(boolean value)
value
- False to disable configuration listeners.public static boolean getUseConfigListeners()
setUseConfigListeners(boolean)
public void addListener(MetamergeConfigChangeListener listener)
addListener
in interface BaseConfiguration
listener
- The listener object to notify.public void removeListener(MetamergeConfigChangeListener listener)
removeListener
in interface BaseConfiguration
listener
- The listener object to remove.public void configurationChanged(MetamergeConfigChange mcc)
configurationChanged
in interface MetamergeConfigChangeListener
public void notifyChange(java.lang.Object source, java.lang.Object key, int operation)
Note: This method is typically called by setParameter method but not from user code.
notifyChange
in interface BaseConfiguration
source
- The caller initiating the change eventkey
- The key that changedoperation
- The operation performed on keypublic void notifyChange(java.lang.Object source, java.lang.Object key, int operation, java.lang.Object userObject)
Note: This method is typically called by setParameter method but not from user code.
notifyChange
in interface BaseConfiguration
source
- The caller initiating the change eventkey
- The key that changedoperation
- The operation performed on keyuserObject
- Arbitrary object provided by callerpublic void notifyChange(MetamergeConfigChange event)
notifyChange
in interface BaseConfiguration
event
- The event describing the changeprotected void performNotifyChange(MetamergeConfigChange mcc)
mcc
- the config objectpublic int size()
BaseConfiguration
size
in interface BaseConfiguration
public javax.naming.Name getName()
BaseConfiguration
getName
in interface BaseConfiguration
public java.lang.String getShortName()
getShortName
in interface BaseConfiguration
public java.lang.String getLongName()
public java.lang.Object getNamespace()
getNamespace
in interface BaseConfiguration
public void setName(javax.naming.Name name)
setName
in interface BaseConfiguration
name
- The new name valuepublic void setName(java.lang.String name) throws java.lang.Exception
setName
in interface BaseConfiguration
name
- The new name value
java.lang.Exception
- if the operation does not succeedpublic java.util.TreeMap getData()
getData
in interface BaseConfiguration
public java.util.TreeMap deepClone(java.util.TreeMap inputMap)
inputMap
- TreeMap object to be cloned
inputMap
parameter.public void setData(java.util.TreeMap obj)
Note: The TreeMap data is not cloned.
setData
in interface BaseConfiguration
obj
- The new data value.public void init() throws java.lang.Exception
init
in interface BaseConfiguration
java.lang.Exception
public java.util.Iterator<java.lang.String> getDataIterator()
getDataIterator
in interface BaseConfiguration
public java.util.List<java.lang.String> getKeys(int level)
getKeys
in interface BaseConfiguration
level
- can have these values: public BaseConfiguration getParent()
getParent
in interface BaseConfiguration
public java.lang.String getParentName()
public void setParent(BaseConfiguration parent)
setParent
in interface BaseConfiguration
parent
- the new parentpublic void setFlags(int flags)
setFlags
in interface BaseConfiguration
flags
- the new flags to setpublic int getFlags()
getFlags
in interface BaseConfiguration
public void removeParameter(java.lang.Object name)
removeParameter
in interface BaseConfiguration
name
- Parameter namepublic boolean isParameterLocal(java.lang.Object name)
true
if the parameter is local and
false
if the parameter does not exist either in this
object or in any inherited object.
isParameterLocal
in interface BaseConfiguration
name
- Parameter name
true
if name is local; otherwise
false
.public boolean hasParameter(java.lang.Object name)
true
if parameter name is local to this object.
hasParameter
in interface BaseConfiguration
name
- Parameter name
true
if name is local.public java.lang.Object getParameterRaw(java.lang.Object name)
getParameterRaw
in interface BaseConfiguration
name
- The parameter name
public java.lang.Object getParameter(java.lang.Object name)
getParameter
in interface BaseConfiguration
name
- The parameter name
public java.lang.Object getParameter(java.lang.Object name, java.lang.Object createValue)
createValue
.
getParameter
in interface BaseConfiguration
name
- The parameter namecreateValue
- The value added to this object in case the parameter does not
exist
public java.lang.Object getParameter(java.lang.Object name, java.lang.Object createValue, java.util.List<java.lang.String> cref)
This method also conveys the List object to ParameterSubstitution calls to resolve circular references. If the parameter is not present even after calling inherited object's getParameter, a default value is assigned to the parameter using createValue.
getParameter
in interface BaseConfiguration
name
- The parameter namecreateValue
- The value added to this object in case the parameter does not
existcref
- The circular references list of previously used config object
expressions
public java.lang.String getStringParameter(java.lang.Object name)
getStringParameter
in interface BaseConfiguration
name
- The parameter name
public boolean getBooleanParameter(java.lang.Object key, boolean defval)
getBooleanParameter
in interface BaseConfiguration
key
- The parameter namedefval
- The default value if parameter does not exist
public int getIntegerParameter(java.lang.Object key, int defval)
getIntegerParameter
in interface BaseConfiguration
key
- The parameter namedefval
- The default value if parameter does not exist
public void setParameter(java.lang.Object name, java.lang.Object value)
setParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter valuepublic void setParameter(java.lang.Object name, java.lang.Object value, boolean notify)
true
, the behavior is identical to
setParameter( name, value ).
setParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter valuenotify
- If true
, notify of the change.public void setProtectedParameter(java.lang.Object name, java.lang.Object value) throws java.lang.Exception
setProtectedParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter value
java.lang.Exception
- if error occurs while setting property to the property store
chosen by TDIProperties object associated with this configpublic void setBooleanParameter(java.lang.Object name, boolean value)
setBooleanParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter valuepublic void setIntegerParameter(java.lang.Object name, int value)
setIntegerParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter valuepublic void setStringParameter(java.lang.Object name, java.lang.String value)
setStringParameter
in interface BaseConfiguration
name
- Parameter namevalue
- Parameter valuepublic java.lang.String getParameterPropertySource(java.lang.Object name)
BaseConfiguration
getParameterPropertySource
in interface BaseConfiguration
name
- the parameter name
public java.lang.String getParameterPropertySourceFromValue(java.lang.Object value)
value
- parameter value
public void setParameterPropertySource(java.lang.Object name, java.lang.String propertySource)
setParameterPropertySource
in interface BaseConfiguration
name
- parameter namepropertySource
- parameter property sourcepublic java.lang.Object expandPropertyValue(java.lang.Object name, java.lang.Object value)
name
- parameter namevalue
- parameter value
public java.lang.Object expandPropertyValue(java.lang.Object name, java.lang.Object value, java.util.List<java.lang.String> cref)
name
- parameter namevalue
- parameter valuecref
- The circular references list of previously used config object
expressions
public java.lang.Object toEntry() throws java.lang.Exception
Entry
object constructed from the internal
data structure. Default implementation simply copies every attribute
to/from entry using String values.
toEntry
in interface BaseConfiguration
java.lang.Exception
public void fromEntry(java.lang.Object entry) throws java.lang.Exception
Entry
object.
fromEntry
in interface BaseConfiguration
entry
- The entry containing data.
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void setMetamergeConfig(MetamergeConfig mc)
setMetamergeConfig
in interface BaseConfiguration
mc
- The new metamergeConfig objectpublic MetamergeConfig getMetamergeConfig()
getMetamergeConfig
in interface BaseConfiguration
public boolean getDebug()
getDebug
in interface BaseConfiguration
public boolean getDebug(boolean defval)
getDebug
in interface BaseConfiguration
defval
- The value to be returned, if the debug parameter cannot be
found
public void setDebug(boolean debug)
setDebug
in interface BaseConfiguration
debug
- The new debug valuepublic boolean getDebugBreak(boolean defval)
getDebugBreak
in interface BaseConfiguration
defval
- The value to be returned, if the debugBreak parameter cannot
be found
public void setDebugBreak(boolean debug)
setDebugBreak
in interface BaseConfiguration
debug
- The new debugBreak value.public java.lang.String getScript()
getScript
in interface BaseConfiguration
public void setScript(java.lang.String script)
setScript
in interface BaseConfiguration
script
- The new script valuepublic java.lang.String getScriptEngine()
getScriptEngine
in interface BaseConfiguration
public void setScriptEngine(java.lang.String engine)
setScriptEngine
in interface BaseConfiguration
engine
- The new ScriptEngine valuepublic java.lang.String getNullBehavior()
getNullBehavior
in interface BaseConfiguration
public java.lang.String getNullBehaviorValue()
getNullBehaviorValue
in interface BaseConfiguration
public void setNullBehavior(java.lang.String nb)
setNullBehavior
in interface BaseConfiguration
nb
- The new nullBehavior valuepublic void setNullBehaviorValue(java.lang.String nbv)
setNullBehaviorValue
in interface BaseConfiguration
nbv
- The new nullBehaviorValue valuepublic java.lang.String getNullDefinition()
getNullDefinition
in interface BaseConfiguration
public java.lang.String getNullDefinitionValue()
getNullDefinitionValue
in interface BaseConfiguration
public void setNullDefinition(java.lang.String nb)
setNullDefinition
in interface BaseConfiguration
nb
- The new nullBehavior valuepublic void setNullDefinitionValue(java.lang.String nbv)
setNullDefinitionValue
in interface BaseConfiguration
nbv
- The new nullBehaviorValue valuepublic boolean getEnabled()
getEnabled
in interface BaseConfiguration
public void setEnabled(boolean autoStart)
setEnabled
in interface BaseConfiguration
autoStart
- true
for enabling; false
otherwise.public boolean willExpandProps()
true
if this object will expand the external
properties; false
otherwise.public boolean willUseInherited()
true
if this object will enable inherited access;
false
otherwise.public java.lang.Object getClone() throws java.lang.Exception
getClone
in interface BaseConfiguration
java.lang.Exception
public boolean getLogEnabled()
getLogEnabled
in interface BaseConfiguration
public void setLogEnabled(boolean enabled)
setLogEnabled
in interface BaseConfiguration
enabled
- true
for enabled log; false
otherwise.public void setUserComment(java.lang.String comment)
setUserComment
in interface BaseConfiguration
comment
- new value for user commentpublic java.lang.String getUserComment()
getUserComment
in interface BaseConfiguration
public java.util.Map<java.lang.String,java.lang.Object> getSubstitutionMap()
getSubstitutionMap
in interface BaseConfiguration
public void setSubstitutionMap(java.util.Map<java.lang.String,java.lang.Object> map)
setSubstitutionMap
in interface BaseConfiguration
map
- the new substitution mappublic boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exception
flatten
in interface BaseConfiguration
excludedNS
- List of namespaces to exclude from flattening
true
if object attempted flattening, FALSE is this
object inherits from an excluded namespace or has no inheritance
java.lang.Exception
public boolean willFlatten(java.util.List<java.lang.String> excludedNS)
willFlatten
in interface BaseConfiguration
excludedNS
- List of namespaces to exclude from flattening
true
if this object will attempt flattening given
the provided excluded namespaces.public java.util.List<java.lang.String> getReferences(java.util.List<java.lang.String> list)
getReferences
in interface BaseConfiguration
list
- If non-null, the object must use the provided list rather than
creating its own
public java.util.List<javax.naming.Binding> search(java.lang.String text, int options, int sizelimit)
search
in interface BaseConfiguration
text
- The search textoptions
- Search options (oneLevel=1, exactCase=2, regExp=4,
paramName=8)sizelimit
- Max number of hits returned
Binding
objects containing results from the
performed search.public java.util.List<javax.naming.Binding> search(java.lang.String text, int options, int sizelimit, java.util.List<javax.naming.Binding> results)
search
in interface BaseConfiguration
text
- The search textoptions
- Search options (oneLevel=1, exactCase=2, regExp=4,
paramName=8)sizelimit
- Max number of hits returnedresults
- A list of results.
results
parameter.public BaseConfiguration getChild(java.lang.Object name)
getChild
in interface BaseConfiguration
name
- The name of the configuration object
public void setChild(java.lang.Object name, BaseConfiguration config)
setChild
in interface BaseConfiguration
name
- The nameconfig
- The configuration objectpublic java.util.List<java.lang.String> getChildNames()
getChildNames
in interface BaseConfiguration
public java.lang.String nameForChild(BaseConfiguration config)
nameForChild
in interface BaseConfiguration
config
- The configuration object
public BaseConfiguration getChildForPath(java.lang.String path) throws javax.naming.NameNotFoundException
getChildForPath
in interface BaseConfiguration
path
- The complete path to an object (as returned by getPath())
javax.naming.NameNotFoundException
- if the child could not be found.public java.lang.String getPath()
getPath
in interface BaseConfiguration
public boolean detachFromParent()
detachFromParent
in interface BaseConfiguration
true
if this object was removed;
false
if it could not be removed.public boolean reattachToParent(int position)
reattachToParent
in interface BaseConfiguration
true
if this object was reattached;
false
if not;public boolean isExpression(java.lang.Object parameter)
isExpression
in interface BaseConfiguration
parameter
- name of the parameter
true
if the parameter is an expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |