public interface IConfigEntityContainer<T> extends IConfigContentNode
An entity container is a node in the configuration tree that holds entity objects. Each entity object is also a node in the tree one level below its container.
Modifier and Type | Method and Description |
---|---|
T |
createEntity(String name)
Create a new entity in the container
|
void |
deserialize(String str,
boolean markAsDirty)
Deserialize a container from a string
|
T |
getEntity(String name)
Get an entity in a container.
|
Iterator<T> |
iterator()
Return an iterator to the contents of the container
|
T |
removeEntity(String name)
Remove an entity from a container.
|
void |
serialize(StringBuilder builder)
Serialize a container to a string
|
clear, isDirty, setDirty
getAddress, getRepository
T createEntity(String name) throws EConfigException
name
- The name of the entity to create.EConfigException
- Thrown if an entity of the specified name already
exists in the container.T getEntity(String name)
name
- The name of the entity to retrieve.T removeEntity(String name)
name
- The name of the entity to remove.void serialize(StringBuilder builder)
builder
- The string builder to use to serialize the containervoid deserialize(String str, boolean markAsDirty) throws EConfigException
str
- The string to derialize from.markAsDirty
- Indicates whether to mark the container as dirty.EConfigException
This method creates entities encoded in the supplied string.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.