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 boolean
detachFromParent()
This method removes this objects from its parent container.java.lang.String
getAttributeName()
Gets the attributeName attribute of the SchemaItemConfig objectContainerConfig
getChildSchemaList()
Returns the child schemajava.lang.Object
getClone()
Return self cloneboolean
getEnabled()
Gets the enabled attribute of this object.java.lang.String
getExternalSyntax()
Gets the externalSyntax attribute of the SchemaItemConfig objectjava.lang.String
getJavaClass()
Gets the java class used internally for the valueint
getMaxOccurrences()
Returns the minimum occurrences for this item.int
getMinOccurrences()
Returns the minimum occurrences for this item.javax.naming.Name
getName()
The object's full namejava.lang.String
getPresenceFlag()
Gets the presence flag of the SchemaItemConfig object.java.lang.Object
getSample()
Returns the sample valueboolean
isLeaf()
Returns true if this item is a leaf nodeboolean
isProperty()
Returns true if this item is a property (e.g XML Element attribute)boolean
isRepeatable()
Returns true if this item is repeatable (e.g.boolean
isRequired()
Returns the required setting for this schema itemboolean
reattachToParent(int position)
This method reattaches this object to its former parent.void
setAttributeName(java.lang.String name)
Sets the attributeName attribute of the SchemaItemConfig objectvoid
setExternalSyntax(java.lang.String syntax)
Sets the externalSyntax attribute of the SchemaItemConfig objectvoid
setJavaClass(java.lang.String className)
Sets the java class name of the SchemaItemConfig objectvoid
setMaxOccurrences(int max)
Sets the max occurence for this schema item.void
setMinOccurrences(int min)
Sets the minimum occurrence for this item.void
setPresenceFlag(java.lang.String presence)
Sets the presence flag of the SchemaItemConfig objectvoid
setProperty(boolean property)
Sets the property flag for this item.void
setSample(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:
getAttributeName
in 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:
setAttributeName
in interfaceSchemaItemConfig
- Parameters:
name
- The new attributeName value
-
getJavaClass
public java.lang.String getJavaClass()
Gets the java class used internally for the value- Specified by:
getJavaClass
in 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:
setJavaClass
in interfaceSchemaItemConfig
- Parameters:
className
- The new java class value
-
getExternalSyntax
public java.lang.String getExternalSyntax()
Gets the externalSyntax attribute of the SchemaItemConfig object- Specified by:
getExternalSyntax
in interfaceSchemaItemConfig
- Returns:
- The externalSyntax value
-
setExternalSyntax
public void setExternalSyntax(java.lang.String syntax)
Sets the externalSyntax attribute of the SchemaItemConfig object- Specified by:
setExternalSyntax
in 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:
getPresenceFlag
in interfaceSchemaItemConfig
- Returns:
- The presence value
-
setPresenceFlag
public void setPresenceFlag(java.lang.String presence)
Sets the presence flag of the SchemaItemConfig object- Specified by:
setPresenceFlag
in interfaceSchemaItemConfig
- Parameters:
presence
- The new presence value
-
getSample
public java.lang.Object getSample()
Returns the sample value- Specified by:
getSample
in interfaceSchemaItemConfig
-
setSample
public void setSample(java.lang.Object sample)
Sets the sample value- Specified by:
setSample
in interfaceSchemaItemConfig
-
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
-
detachFromParent
public boolean detachFromParent()
Description copied from class:BaseConfigurationImpl
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.- Specified by:
detachFromParent
in interfaceBaseConfiguration
- Overrides:
detachFromParent
in classBaseConfigurationImpl
- Returns:
true
if this object was removed;false
if it could not be removed.
-
reattachToParent
public boolean reattachToParent(int position)
Description copied from class:BaseConfigurationImpl
This method reattaches this object to its former parent.- Specified by:
reattachToParent
in interfaceBaseConfiguration
- Overrides:
reattachToParent
in classBaseConfigurationImpl
- Returns:
true
if this object was reattached;false
if not;
-
isRequired
public boolean isRequired()
Description copied from interface:SchemaItemConfig
Returns the required setting for this schema item- Specified by:
isRequired
in interfaceSchemaItemConfig
- Returns:
- true if this item is required
-
getChildSchemaList
public ContainerConfig getChildSchemaList()
Description copied from interface:SchemaItemConfig
Returns the child schema- Specified by:
getChildSchemaList
in interfaceSchemaItemConfig
-
getMaxOccurrences
public int getMaxOccurrences()
Description copied from interface:SchemaItemConfig
Returns the minimum occurrences for this item.- Specified by:
getMaxOccurrences
in interfaceSchemaItemConfig
-
getMinOccurrences
public int getMinOccurrences()
Description copied from interface:SchemaItemConfig
Returns the minimum occurrences for this item.- Specified by:
getMinOccurrences
in interfaceSchemaItemConfig
-
setMaxOccurrences
public void setMaxOccurrences(int max)
Description copied from interface:SchemaItemConfig
Sets the max occurence for this schema item. -1 is unbound.- Specified by:
setMaxOccurrences
in interfaceSchemaItemConfig
-
setMinOccurrences
public void setMinOccurrences(int min)
Description copied from interface:SchemaItemConfig
Sets the minimum occurrence for this item.- Specified by:
setMinOccurrences
in interfaceSchemaItemConfig
-
isProperty
public boolean isProperty()
Description copied from interface:SchemaItemConfig
Returns true if this item is a property (e.g XML Element attribute)- Specified by:
isProperty
in interfaceSchemaItemConfig
-
setProperty
public void setProperty(boolean property)
Description copied from interface:SchemaItemConfig
Sets the property flag for this item.- Specified by:
setProperty
in interfaceSchemaItemConfig
-
getName
public javax.naming.Name getName()
Description copied from interface:BaseConfiguration
The object's full name- Specified by:
getName
in interfaceBaseConfiguration
- Overrides:
getName
in classBaseConfigurationImpl
- Returns:
- the name of this object.
-
isRepeatable
public boolean isRepeatable()
Description copied from interface:SchemaItemConfig
Returns true if this item is repeatable (e.g. max > 1)- Specified by:
isRepeatable
in interfaceSchemaItemConfig
-
isLeaf
public boolean isLeaf()
Description copied from interface:SchemaItemConfig
Returns true if this item is a leaf node- Specified by:
isLeaf
in interfaceSchemaItemConfig
-
getEnabled
public boolean getEnabled()
Description copied from class:BaseConfigurationImpl
Gets the enabled attribute of this object.- Specified by:
getEnabled
in interfaceBaseConfiguration
- Overrides:
getEnabled
in classBaseConfigurationImpl
- Returns:
- The nullBehaviorValue value.
-
-