Package com.ibm.di.config.base
Class FormSectionImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.FormSectionImpl
-
- All Implemented Interfaces:
BaseConfiguration
,FormSection
,MetamergeConfigChangeListener
,java.io.Serializable
public class FormSectionImpl extends BaseConfigurationImpl implements FormSection
Implementation of one section in aFormConfigImpl
- Since:
- 7.0
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description FormSectionImpl()
FormSectionImpl(java.lang.Object obj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFormItem(FormItemConfig item)
Add a FormItem to this FormSection.java.lang.Object
getClone()
Return self clonejava.lang.String
getDescription()
Get the description of this FormSection, or null if no descriptionFormItemConfig
getFormItem(java.lang.String name)
Get a FormItem defined by this FormSection, or the enclosing FormConfig.java.util.Collection<FormItemConfig>
getFormItems()
Returns a Collection of all locally defined FormItemConfigs.java.util.Vector<java.lang.String>
getNames()
Return the names of all FormSections or FormItems in the FormSection.java.lang.String
getTitle()
Get the title of this FormSection, or null if no titlevoid
init()
Called after internal data structure is set.boolean
initiallyExpanded()
Return true if this section is initially expandedvoid
setDescription(java.lang.String description)
Set the description of this FormSection The new description should be a key to be looked up in the translation filevoid
setForm(FormConfig form)
Set the FormConfig this FormSection is part of.void
setInitiallyExpanded(boolean value)
Set whether this section is initially expandedvoid
setNames(java.util.Vector<java.lang.String> names)
Set the names of all FormSections or FormItems in the FormSectionvoid
setTitle(java.lang.String title)
Set the title of this FormSection.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Method Detail
-
init
public void init()
Description copied from class:BaseConfigurationImpl
Called after internal data structure is set.- Specified by:
init
in interfaceBaseConfiguration
- Overrides:
init
in classBaseConfigurationImpl
-
getNames
public java.util.Vector<java.lang.String> getNames()
Description copied from interface:FormSection
Return the names of all FormSections or FormItems in the FormSection. Note: Modifying the Vector will modify the list in this FormSection.- Specified by:
getNames
in interfaceFormSection
-
setNames
public void setNames(java.util.Vector<java.lang.String> names)
Description copied from interface:FormSection
Set the names of all FormSections or FormItems in the FormSection- Specified by:
setNames
in interfaceFormSection
- Parameters:
names
- The new list of names
-
getTitle
public java.lang.String getTitle()
Description copied from interface:FormSection
Get the title of this FormSection, or null if no title- Specified by:
getTitle
in interfaceFormSection
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:FormSection
Set the title of this FormSection. The new title should be a key to be looked up in the translation file- Specified by:
setTitle
in interfaceFormSection
- Parameters:
title
- The new title
-
getDescription
public java.lang.String getDescription()
Description copied from interface:FormSection
Get the description of this FormSection, or null if no description- Specified by:
getDescription
in interfaceFormSection
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:FormSection
Set the description of this FormSection The new description should be a key to be looked up in the translation file- Specified by:
setDescription
in interfaceFormSection
- Parameters:
description
- The new description
-
initiallyExpanded
public boolean initiallyExpanded()
Description copied from interface:FormSection
Return true if this section is initially expanded- Specified by:
initiallyExpanded
in interfaceFormSection
-
setInitiallyExpanded
public void setInitiallyExpanded(boolean value)
Description copied from interface:FormSection
Set whether this section is initially expanded- Specified by:
setInitiallyExpanded
in interfaceFormSection
- Parameters:
value
- true if the section is initially expanded
-
getFormItem
public FormItemConfig getFormItem(java.lang.String name)
Description copied from interface:FormSection
Get a FormItem defined by this FormSection, or the enclosing FormConfig. May return null if the name is not defined. This may override or modify a FormItem defined in the FormConfig.- Specified by:
getFormItem
in interfaceFormSection
- Parameters:
name
- The name of the FormItem
-
addFormItem
public void addFormItem(FormItemConfig item)
Description copied from interface:FormSection
Add a FormItem to this FormSection. This may override or modify a FormItem defined in the FormConfig.- Specified by:
addFormItem
in interfaceFormSection
- Parameters:
item
- The new FormItem
-
getFormItems
public java.util.Collection<FormItemConfig> getFormItems()
Description copied from interface:FormSection
Returns a Collection of all locally defined FormItemConfigs. For internal use.- Specified by:
getFormItems
in interfaceFormSection
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
Return self clone- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classBaseConfigurationImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
setForm
public void setForm(FormConfig form)
Description copied from interface:FormSection
Set the FormConfig this FormSection is part of.- Specified by:
setForm
in interfaceFormSection
- Parameters:
form
- The FormConfig
-
-