public abstract class ConfigEntityContainerBase<T extends IConfigEntity> extends ConfigContentNodeBase implements IConfigEntityContainer<T>
This class supplies the base implementation for a configuration entity container. The provider should extend this class and complete the implementation.
Modifier and Type | Method and Description |
---|---|
IConfigContentNode |
clear()
Implementation of
IConfigContentNode.clear() |
T |
createEntity(String name)
Implementation of
IConfigEntityContainer.createEntity(java.lang.String) |
void |
deserialize(String str,
boolean markAsDirty)
Implementation of
IConfigEntityContainer.deserialize(java.lang.String, boolean) |
T |
getEntity(String name)
Implementation of
IConfigEntityContainer.getEntity(java.lang.String) |
Iterator<T> |
iterator()
Implementation of
IConfigEntityContainer#createMessageBusBinding |
T |
removeEntity(String name)
Implementation of
IConfigEntityContainer.removeEntity(java.lang.String) |
void |
serialize(StringBuilder builder)
Implementation of
IConfigEntityContainer.serialize(java.lang.StringBuilder) |
isDirty, setDirty
getAddress, getRepository, toString
getTracer
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDirty, setDirty
getAddress, getRepository
public final T createEntity(String name) throws EConfigException
IConfigEntityContainer.createEntity(java.lang.String)
createEntity
in interface IConfigEntityContainer<T extends IConfigEntity>
name
- The name of the entity to create.EConfigException
- Thrown if an entity of the specified name already
exists in the container.public final T getEntity(String name)
IConfigEntityContainer.getEntity(java.lang.String)
getEntity
in interface IConfigEntityContainer<T extends IConfigEntity>
name
- The name of the entity to retrieve.public T removeEntity(String name)
IConfigEntityContainer.removeEntity(java.lang.String)
removeEntity
in interface IConfigEntityContainer<T extends IConfigEntity>
name
- The name of the entity to remove.public final void serialize(StringBuilder builder)
IConfigEntityContainer.serialize(java.lang.StringBuilder)
serialize
in interface IConfigEntityContainer<T extends IConfigEntity>
builder
- The string builder to use to serialize the containerpublic final void deserialize(String str, boolean markAsDirty) throws EConfigException
IConfigEntityContainer.deserialize(java.lang.String, boolean)
deserialize
in interface IConfigEntityContainer<T extends IConfigEntity>
str
- The string to derialize from.markAsDirty
- Indicates whether to mark the container as dirty.EConfigException
public final Iterator<T> iterator()
IConfigEntityContainer#createMessageBusBinding
iterator
in interface IConfigEntityContainer<T extends IConfigEntity>
public final IConfigContentNode clear()
IConfigContentNode.clear()
clear
in interface IConfigContentNode
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.