|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.HookConfigImpl
public class HookConfigImpl
This is the implementation class for the configuration of a single Hook.
Field Summary |
---|
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
---|
NAME |
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 | |
---|---|
HookConfigImpl()
Constructor |
|
HookConfigImpl(java.lang.Object config)
Constructor providing a TreeMap of attribute/value pairs. |
|
HookConfigImpl(java.lang.Object name,
java.lang.String script)
Constructor providing hook name and script. |
Method Summary | |
---|---|
boolean |
couldInherit()
Could this hook inherit data from some other place, if it did not have local data? |
boolean |
detachFromParent()
This method removes this objects from its parent container. If this cannot be removed from the parent the contents should be cleared (default implementation) and true be returned as if it were removed. If the object cannot be cleared or removed it should return false. |
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. |
java.lang.Object |
getClone()
|
boolean |
getEnabled()
Gets the enabled attribute of this object. |
java.lang.Object |
getHookName()
|
java.lang.String |
getScript()
Gets the script attribute of this object. |
java.lang.String |
getShortName()
Gets the shortName attribute of the BaseConfiguration object. |
boolean |
reattachToParent(int position)
This method reattaches this object to its former parent. |
void |
setEnabled(boolean enabled)
Sets the enabled attribute of this object. |
void |
setHookName(java.lang.Object name)
Sets hook name. |
void |
setInheritsFrom(BaseConfiguration inheritFrom)
Sets the object from which this object inherits data. Note: Call this method to setup a temporary (non persistent) object for inheritance. |
void |
setScript(java.lang.String script)
Sets the hook script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HookConfigImpl()
public HookConfigImpl(java.lang.Object config)
config
- initial configpublic HookConfigImpl(java.lang.Object name, java.lang.String script)
name
- script
- Method Detail |
---|
public java.lang.Object getHookName()
getHookName
in interface HookConfig
public void setHookName(java.lang.Object name)
setHookName
in interface HookConfig
name
- public boolean getEnabled()
getEnabled
in interface BaseConfiguration
getEnabled
in interface HookConfig
getEnabled
in class BaseConfigurationImpl
public void setEnabled(boolean enabled)
setEnabled
in interface BaseConfiguration
setEnabled
in interface HookConfig
setEnabled
in class BaseConfigurationImpl
enabled
- true
for enabling; false
otherwise.public java.lang.String getScript()
getScript
in interface BaseConfiguration
getScript
in class BaseConfigurationImpl
public void setScript(java.lang.String script)
setScript
in interface BaseConfiguration
setScript
in class BaseConfigurationImpl
script
- public boolean couldInherit()
couldInherit
in interface HookConfig
public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exception
flatten
in interface BaseConfiguration
flatten
in class BaseConfigurationImpl
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 java.lang.Object getClone() throws java.lang.Exception
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
java.lang.Exception
public boolean detachFromParent()
detachFromParent
in interface BaseConfiguration
detachFromParent
in class BaseConfigurationImpl
true
if this object was removed;
false
if it could not be removed.public boolean reattachToParent(int position)
reattachToParent
in interface BaseConfiguration
reattachToParent
in class BaseConfigurationImpl
true
if this object was reattached;
false
if not;public void setInheritsFrom(BaseConfiguration inheritFrom)
Note: Call this method to setup a temporary (non persistent) object for inheritance.
setInheritsFrom
in interface BaseConfiguration
setInheritsFrom
in class BaseConfigurationImpl
inheritFrom
- The new inheritsFrom value.public java.lang.String getShortName()
BaseConfigurationImpl
getShortName
in interface BaseConfiguration
getShortName
in class BaseConfigurationImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |