Package com.ibm.di.config.interfaces
Interface SchemaItemConfig
-
- All Superinterfaces:
BaseConfiguration,java.io.Serializable
- All Known Implementing Classes:
SchemaItemConfigImpl
public interface SchemaItemConfig extends BaseConfiguration
Describes an item from the schema- See Also:
SchemaConfig
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRESENCE_OPTIONALstatic java.lang.StringPRESENCE_REQUIRED-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAttributeName()Gets the attributeName attribute of the SchemaItemConfig objectContainerConfiggetChildSchemaList()Returns the child schemajava.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.java.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 itemvoidsetAttributeName(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 interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, 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, init, 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
-
-
-
-
Field Detail
-
PRESENCE_REQUIRED
static final java.lang.String PRESENCE_REQUIRED
- See Also:
- Constant Field Values
-
PRESENCE_OPTIONAL
static final java.lang.String PRESENCE_OPTIONAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAttributeName
java.lang.String getAttributeName()
Gets the attributeName attribute of the SchemaItemConfig object- Returns:
- The attributeName value
-
setAttributeName
void setAttributeName(java.lang.String name)
Sets the attributeName attribute of the SchemaItemConfig object- Parameters:
name- The new attributeName value
-
getJavaClass
java.lang.String getJavaClass()
Gets the java class used internally for the value- Returns:
- The java class name
-
setJavaClass
void setJavaClass(java.lang.String className)
Sets the java class name of the SchemaItemConfig object- Parameters:
className- The new java class value
-
getExternalSyntax
java.lang.String getExternalSyntax()
Gets the externalSyntax attribute of the SchemaItemConfig object- Returns:
- The externalSyntax value
-
setExternalSyntax
void setExternalSyntax(java.lang.String syntax)
Sets the externalSyntax attribute of the SchemaItemConfig object- Parameters:
syntax- The new externalSyntax value
-
getPresenceFlag
java.lang.String getPresenceFlag()
Gets the presence flag of the SchemaItemConfig object. The presence flag indicates to the user whether it is required, optional.- Returns:
- The presence value
-
setPresenceFlag
void setPresenceFlag(java.lang.String presence)
Sets the presence flag of the SchemaItemConfig object- Parameters:
presence- The new presence value
-
getSample
java.lang.Object getSample()
Returns the sample value
-
setSample
void setSample(java.lang.Object sample)
Sets the sample value
-
isRequired
boolean isRequired()
Returns the required setting for this schema item- Returns:
- true if this item is required
-
getChildSchemaList
ContainerConfig getChildSchemaList()
Returns the child schema- Since:
- 7.0
-
getMinOccurrences
int getMinOccurrences()
Returns the minimum occurrences for this item.- Since:
- 7.0
-
setMinOccurrences
void setMinOccurrences(int min)
Sets the minimum occurrence for this item.- Parameters:
min-- Since:
- 7.0
-
getMaxOccurrences
int getMaxOccurrences()
Returns the minimum occurrences for this item.- Since:
- 7.0
-
setMaxOccurrences
void setMaxOccurrences(int max)
Sets the max occurence for this schema item. -1 is unbound.- Parameters:
max-- Since:
- 7.0
-
isProperty
boolean isProperty()
Returns true if this item is a property (e.g XML Element attribute)- Since:
- 7.0
-
setProperty
void setProperty(boolean property)
Sets the property flag for this item.- Since:
- 7.0
-
isRepeatable
boolean isRepeatable()
Returns true if this item is repeatable (e.g. max > 1)- Since:
- 7.0
-
isLeaf
boolean isLeaf()
Returns true if this item is a leaf node- Since:
- 7.0
-
-