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 voidaddFormItem(FormItemConfig item)Add a FormItem to this FormSection.java.lang.ObjectgetClone()Return self clonejava.lang.StringgetDescription()Get the description of this FormSection, or null if no descriptionFormItemConfiggetFormItem(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.StringgetTitle()Get the title of this FormSection, or null if no titlevoidinit()Called after internal data structure is set.booleaninitiallyExpanded()Return true if this section is initially expandedvoidsetDescription(java.lang.String description)Set the description of this FormSection The new description should be a key to be looked up in the translation filevoidsetForm(FormConfig form)Set the FormConfig this FormSection is part of.voidsetInitiallyExpanded(boolean value)Set whether this section is initially expandedvoidsetNames(java.util.Vector<java.lang.String> names)Set the names of all FormSections or FormItems in the FormSectionvoidsetTitle(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:BaseConfigurationImplCalled after internal data structure is set.- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl
-
getNames
public java.util.Vector<java.lang.String> getNames()
Description copied from interface:FormSectionReturn the names of all FormSections or FormItems in the FormSection. Note: Modifying the Vector will modify the list in this FormSection.- Specified by:
getNamesin interfaceFormSection
-
setNames
public void setNames(java.util.Vector<java.lang.String> names)
Description copied from interface:FormSectionSet the names of all FormSections or FormItems in the FormSection- Specified by:
setNamesin interfaceFormSection- Parameters:
names- The new list of names
-
getTitle
public java.lang.String getTitle()
Description copied from interface:FormSectionGet the title of this FormSection, or null if no title- Specified by:
getTitlein interfaceFormSection
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:FormSectionSet the title of this FormSection. The new title should be a key to be looked up in the translation file- Specified by:
setTitlein interfaceFormSection- Parameters:
title- The new title
-
getDescription
public java.lang.String getDescription()
Description copied from interface:FormSectionGet the description of this FormSection, or null if no description- Specified by:
getDescriptionin interfaceFormSection
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:FormSectionSet the description of this FormSection The new description should be a key to be looked up in the translation file- Specified by:
setDescriptionin interfaceFormSection- Parameters:
description- The new description
-
initiallyExpanded
public boolean initiallyExpanded()
Description copied from interface:FormSectionReturn true if this section is initially expanded- Specified by:
initiallyExpandedin interfaceFormSection
-
setInitiallyExpanded
public void setInitiallyExpanded(boolean value)
Description copied from interface:FormSectionSet whether this section is initially expanded- Specified by:
setInitiallyExpandedin interfaceFormSection- Parameters:
value- true if the section is initially expanded
-
getFormItem
public FormItemConfig getFormItem(java.lang.String name)
Description copied from interface:FormSectionGet 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:
getFormItemin interfaceFormSection- Parameters:
name- The name of the FormItem
-
addFormItem
public void addFormItem(FormItemConfig item)
Description copied from interface:FormSectionAdd a FormItem to this FormSection. This may override or modify a FormItem defined in the FormConfig.- Specified by:
addFormItemin interfaceFormSection- Parameters:
item- The new FormItem
-
getFormItems
public java.util.Collection<FormItemConfig> getFormItems()
Description copied from interface:FormSectionReturns a Collection of all locally defined FormItemConfigs. For internal use.- Specified by:
getFormItemsin interfaceFormSection
-
getClone
public java.lang.Object getClone() throws java.lang.ExceptionReturn self clone- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein classBaseConfigurationImpl- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
setForm
public void setForm(FormConfig form)
Description copied from interface:FormSectionSet the FormConfig this FormSection is part of.- Specified by:
setFormin interfaceFormSection- Parameters:
form- The FormConfig
-
-