|
|||||||||||
| 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(Object config)
Constructor providing a TreeMap of attribute/value pairs. |
|
HookConfigImpl(Object name,
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. |
boolean |
flatten(List<String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
Object |
getClone()
|
boolean |
getEnabled()
Gets the enabled attribute of this object. |
Object |
getHookName()
|
String |
getScript()
Gets the script attribute of this object. |
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(Object name)
Sets hook name. |
void |
setInheritsFrom(BaseConfiguration inheritFrom)
Sets the object from which this object inherits data. |
void |
setScript(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(Object config)
config - initial config
public HookConfigImpl(Object name,
String script)
name - script - | Method Detail |
|---|
public Object getHookName()
getHookName in interface HookConfigpublic void setHookName(Object name)
setHookName in interface HookConfigname - public boolean getEnabled()
getEnabled in interface BaseConfigurationgetEnabled in interface HookConfiggetEnabled in class BaseConfigurationImplpublic void setEnabled(boolean enabled)
setEnabled in interface BaseConfigurationsetEnabled in interface HookConfigsetEnabled in class BaseConfigurationImplenabled - true for enabling; false otherwise.public String getScript()
getScript in interface BaseConfigurationgetScript in class BaseConfigurationImplpublic void setScript(String script)
setScript in interface BaseConfigurationsetScript in class BaseConfigurationImplscript - public boolean couldInherit()
couldInherit in interface HookConfig
public boolean flatten(List<String> excludedNS)
throws Exception
flatten in interface BaseConfigurationflatten in class BaseConfigurationImplexcludedNS - 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
Exception
public Object getClone()
throws Exception
getClone in interface BaseConfigurationgetClone in class BaseConfigurationImplExceptionpublic boolean detachFromParent()
detachFromParent in interface BaseConfigurationdetachFromParent in class BaseConfigurationImpltrue if this object was removed;
false if it could not be removed.public boolean reattachToParent(int position)
reattachToParent in interface BaseConfigurationreattachToParent in class BaseConfigurationImpltrue 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 BaseConfigurationsetInheritsFrom in class BaseConfigurationImplinheritFrom - The new inheritsFrom value.public String getShortName()
BaseConfigurationImpl
getShortName in interface BaseConfigurationgetShortName in class BaseConfigurationImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||