Package com.ibm.di.config.base
Class SchemaItemConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.SchemaItemConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,MetamergeConfigChangeListener,SchemaItemConfig,java.io.Serializable
public class SchemaItemConfigImpl extends BaseConfigurationImpl implements SchemaItemConfig
Describes the configuration of an item from a schema- 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
-
Fields inherited from interface com.ibm.di.config.interfaces.SchemaItemConfig
PRESENCE_OPTIONAL, PRESENCE_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description SchemaItemConfigImpl()SchemaItemConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandetachFromParent()This method removes this objects from its parent container.java.lang.StringgetAttributeName()Gets the attributeName attribute of the SchemaItemConfig objectContainerConfiggetChildSchemaList()Returns the child schemajava.lang.ObjectgetClone()Return self clonebooleangetEnabled()Gets the enabled attribute of this object.java.lang.StringgetExternalSyntax()Gets the externalSyntax attribute of the SchemaItemConfig objectjava.lang.StringgetJavaClass()Gets the java class used internally for the valueintgetMaxOccurrences()Returns the minimum occurrences for this item.intgetMinOccurrences()Returns the minimum occurrences for this item.javax.naming.NamegetName()The object's full namejava.lang.StringgetPresenceFlag()Gets the presence flag of the SchemaItemConfig object.java.lang.ObjectgetSample()Returns the sample valuebooleanisLeaf()Returns true if this item is a leaf nodebooleanisProperty()Returns true if this item is a property (e.g XML Element attribute)booleanisRepeatable()Returns true if this item is repeatable (e.g.booleanisRequired()Returns the required setting for this schema itembooleanreattachToParent(int position)This method reattaches this object to its former parent.voidsetAttributeName(java.lang.String name)Sets the attributeName attribute of the SchemaItemConfig objectvoidsetExternalSyntax(java.lang.String syntax)Sets the externalSyntax attribute of the SchemaItemConfig objectvoidsetJavaClass(java.lang.String className)Sets the java class name of the SchemaItemConfig objectvoidsetMaxOccurrences(int max)Sets the max occurence for this schema item.voidsetMinOccurrences(int min)Sets the minimum occurrence for this item.voidsetPresenceFlag(java.lang.String presence)Sets the presence flag of the SchemaItemConfig objectvoidsetProperty(boolean property)Sets the property flag for this item.voidsetSample(java.lang.Object sample)Sets the sample value-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, 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, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, 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, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, 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
-
getAttributeName
public java.lang.String getAttributeName()
Gets the attributeName attribute of the SchemaItemConfig object- Specified by:
getAttributeNamein interfaceSchemaItemConfig- Returns:
- The name of the attribute item
-
setAttributeName
public void setAttributeName(java.lang.String name)
Sets the attributeName attribute of the SchemaItemConfig object- Specified by:
setAttributeNamein interfaceSchemaItemConfig- Parameters:
name- The new attributeName value
-
getJavaClass
public java.lang.String getJavaClass()
Gets the java class used internally for the value- Specified by:
getJavaClassin interfaceSchemaItemConfig- Returns:
- The java class name
-
setJavaClass
public void setJavaClass(java.lang.String className)
Sets the java class name of the SchemaItemConfig object- Specified by:
setJavaClassin interfaceSchemaItemConfig- Parameters:
className- The new java class value
-
getExternalSyntax
public java.lang.String getExternalSyntax()
Gets the externalSyntax attribute of the SchemaItemConfig object- Specified by:
getExternalSyntaxin interfaceSchemaItemConfig- Returns:
- The externalSyntax value
-
setExternalSyntax
public void setExternalSyntax(java.lang.String syntax)
Sets the externalSyntax attribute of the SchemaItemConfig object- Specified by:
setExternalSyntaxin interfaceSchemaItemConfig- Parameters:
syntax- The new externalSyntax value
-
getPresenceFlag
public java.lang.String getPresenceFlag()
Gets the presence flag of the SchemaItemConfig object. The presence flag indicates to the user whether it is required or optional.- Specified by:
getPresenceFlagin interfaceSchemaItemConfig- Returns:
- The presence value
-
setPresenceFlag
public void setPresenceFlag(java.lang.String presence)
Sets the presence flag of the SchemaItemConfig object- Specified by:
setPresenceFlagin interfaceSchemaItemConfig- Parameters:
presence- The new presence value
-
getSample
public java.lang.Object getSample()
Returns the sample value- Specified by:
getSamplein interfaceSchemaItemConfig
-
setSample
public void setSample(java.lang.Object sample)
Sets the sample value- Specified by:
setSamplein interfaceSchemaItemConfig
-
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
-
detachFromParent
public boolean detachFromParent()
Description copied from class:BaseConfigurationImplThis 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.- Specified by:
detachFromParentin interfaceBaseConfiguration- Overrides:
detachFromParentin classBaseConfigurationImpl- Returns:
trueif this object was removed;falseif it could not be removed.
-
reattachToParent
public boolean reattachToParent(int position)
Description copied from class:BaseConfigurationImplThis method reattaches this object to its former parent.- Specified by:
reattachToParentin interfaceBaseConfiguration- Overrides:
reattachToParentin classBaseConfigurationImpl- Returns:
trueif this object was reattached;falseif not;
-
isRequired
public boolean isRequired()
Description copied from interface:SchemaItemConfigReturns the required setting for this schema item- Specified by:
isRequiredin interfaceSchemaItemConfig- Returns:
- true if this item is required
-
getChildSchemaList
public ContainerConfig getChildSchemaList()
Description copied from interface:SchemaItemConfigReturns the child schema- Specified by:
getChildSchemaListin interfaceSchemaItemConfig
-
getMaxOccurrences
public int getMaxOccurrences()
Description copied from interface:SchemaItemConfigReturns the minimum occurrences for this item.- Specified by:
getMaxOccurrencesin interfaceSchemaItemConfig
-
getMinOccurrences
public int getMinOccurrences()
Description copied from interface:SchemaItemConfigReturns the minimum occurrences for this item.- Specified by:
getMinOccurrencesin interfaceSchemaItemConfig
-
setMaxOccurrences
public void setMaxOccurrences(int max)
Description copied from interface:SchemaItemConfigSets the max occurence for this schema item. -1 is unbound.- Specified by:
setMaxOccurrencesin interfaceSchemaItemConfig
-
setMinOccurrences
public void setMinOccurrences(int min)
Description copied from interface:SchemaItemConfigSets the minimum occurrence for this item.- Specified by:
setMinOccurrencesin interfaceSchemaItemConfig
-
isProperty
public boolean isProperty()
Description copied from interface:SchemaItemConfigReturns true if this item is a property (e.g XML Element attribute)- Specified by:
isPropertyin interfaceSchemaItemConfig
-
setProperty
public void setProperty(boolean property)
Description copied from interface:SchemaItemConfigSets the property flag for this item.- Specified by:
setPropertyin interfaceSchemaItemConfig
-
getName
public javax.naming.Name getName()
Description copied from interface:BaseConfigurationThe object's full name- Specified by:
getNamein interfaceBaseConfiguration- Overrides:
getNamein classBaseConfigurationImpl- Returns:
- the name of this object.
-
isRepeatable
public boolean isRepeatable()
Description copied from interface:SchemaItemConfigReturns true if this item is repeatable (e.g. max > 1)- Specified by:
isRepeatablein interfaceSchemaItemConfig
-
isLeaf
public boolean isLeaf()
Description copied from interface:SchemaItemConfigReturns true if this item is a leaf node- Specified by:
isLeafin interfaceSchemaItemConfig
-
getEnabled
public boolean getEnabled()
Description copied from class:BaseConfigurationImplGets the enabled attribute of this object.- Specified by:
getEnabledin interfaceBaseConfiguration- Overrides:
getEnabledin classBaseConfigurationImpl- Returns:
- The nullBehaviorValue value.
-
-