|
|||||||||||
| 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(Object config)
|
|
| Method Summary | |
|---|---|
void |
attachSchema(SchemaConfig schema)
Attach a Schema. |
void |
detachSchema(SchemaConfig schema)
Detach a Schema. |
boolean |
flatten(List<String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
BaseConfiguration |
getChild(Object name)
|
List<String> |
getChildNames()
Returns a list of names for all child configuration object |
SchemaItemConfig |
getItem(Object name)
Returns a named SchemItemConfig |
List<String> |
getItemNames()
Gets a List of all of the names. |
String |
getUserComment()
Override since the user comment may be a schema item |
SchemaItemConfig |
newItem(Object name)
Constructs a new SchemaItemConfig object. |
void |
removeItem(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(Object name,
SchemaItemConfig item)
Sets the item attribute of the SchemaConfig object |
void |
setUserComment(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(Object config)
| Method Detail |
|---|
public String getUserComment()
getUserComment in interface BaseConfigurationgetUserComment in class BaseConfigurationImplpublic void setUserComment(String comment)
setUserComment in interface BaseConfigurationsetUserComment in class BaseConfigurationImplcomment - new value for user commentpublic List<String> getItemNames()
SchemaConfig
getItemNames in interface SchemaConfigpublic SchemaItemConfig getItem(Object name)
getItem in interface SchemaConfigname - The name of the schema item
public void removeItem(Object name)
removeItem in interface SchemaConfigname - The name of the item to remove
public void setItem(Object name,
SchemaItemConfig item)
setItem in interface SchemaConfigname - The name of the new itemitem - The SchemaConfig object to put in
public SchemaItemConfig newItem(Object name)
throws Exception
newItem in interface SchemaConfigname - The name of the item attribute
Exception - if the construction does not succeed or there is an
already existing item with such namepublic void setInheritsFrom(BaseConfiguration inheritFrom)
setInheritsFrom in interface BaseConfigurationsetInheritsFrom in class BaseConfigurationImplinheritFrom - The new inheritsFrom value.
public boolean flatten(List<String> excludedNS)
throws Exception
BaseConfigurationImpl
flatten in interface BaseConfigurationflatten in class BaseConfigurationImplexcludedNS - 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
Exceptionpublic void attachSchema(SchemaConfig schema)
schema - Schema to attachpublic void detachSchema(SchemaConfig schema)
schema - Schema to detachpublic BaseConfiguration getChild(Object name)
getChild in interface BaseConfigurationgetChild in class BaseConfigurationImplname - The name of the configuration object
public List<String> getChildNames()
getChildNames in interface BaseConfigurationgetChildNames in class BaseConfigurationImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||