|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.SchemaConfigImpl
public class SchemaConfigImpl
Implements SchemaConfig
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 | |
---|---|
SchemaConfigImpl()
|
|
SchemaConfigImpl(java.lang.Object config)
|
Method Summary | |
---|---|
void |
attachSchema(SchemaConfig schema)
Attach a Schema. |
void |
detachSchema(SchemaConfig schema)
Detach a Schema. |
boolean |
flatten(java.util.List<java.lang.String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
BaseConfiguration |
getChild(java.lang.Object name)
|
java.util.List<java.lang.String> |
getChildNames()
Returns a list of names for all child configuration object |
SchemaItemConfig |
getItem(java.lang.Object name)
Returns a named SchemItemConfig |
java.util.List<java.lang.String> |
getItemNames()
Gets a List of all of the names. |
java.lang.String |
getUserComment()
Override since the user comment may be a schema item |
SchemaItemConfig |
newItem(java.lang.Object name)
Constructs a new SchemaItemConfig object. |
void |
removeItem(java.lang.Object name)
Removes an item attribute from the schema |
void |
setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to change the inherited object if we inherit from a connector. |
void |
setItem(java.lang.Object name,
SchemaItemConfig item)
Sets the item attribute of the SchemaConfig object |
void |
setUserComment(java.lang.String comment)
Override, we cannot set any user comment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaConfigImpl()
public SchemaConfigImpl(java.lang.Object config)
Method Detail |
---|
public java.lang.String getUserComment()
getUserComment
in interface BaseConfiguration
getUserComment
in class BaseConfigurationImpl
public void setUserComment(java.lang.String comment)
setUserComment
in interface BaseConfiguration
setUserComment
in class BaseConfigurationImpl
comment
- new value for user commentpublic java.util.List<java.lang.String> getItemNames()
SchemaConfig
getItemNames
in interface SchemaConfig
public SchemaItemConfig getItem(java.lang.Object name)
getItem
in interface SchemaConfig
name
- The name of the schema item
public void removeItem(java.lang.Object name)
removeItem
in interface SchemaConfig
name
- The name of the item to removepublic void setItem(java.lang.Object name, SchemaItemConfig item)
setItem
in interface SchemaConfig
name
- The name of the new itemitem
- The SchemaConfig object to put inpublic SchemaItemConfig newItem(java.lang.Object name) throws java.lang.Exception
newItem
in interface SchemaConfig
name
- The name of the item attribute
java.lang.Exception
- if the construction does not succeed or there is an
already existing item with such namepublic void setInheritsFrom(BaseConfiguration inheritFrom)
setInheritsFrom
in interface BaseConfiguration
setInheritsFrom
in class BaseConfigurationImpl
inheritFrom
- The new inheritsFrom value.public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exception
BaseConfigurationImpl
flatten
in interface BaseConfiguration
flatten
in class BaseConfigurationImpl
excludedNS
- List of namespaces to exclude from flattening
true
if object attempted flattening, FALSE is this
object inherits from an excluded namespace or has no inheritance
java.lang.Exception
public void attachSchema(SchemaConfig schema)
schema
- Schema to attachpublic void detachSchema(SchemaConfig schema)
schema
- Schema to detachpublic BaseConfiguration getChild(java.lang.Object name)
getChild
in interface BaseConfiguration
getChild
in class BaseConfigurationImpl
name
- The name of the configuration object
public java.util.List<java.lang.String> getChildNames()
getChildNames
in interface BaseConfiguration
getChildNames
in class BaseConfigurationImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |