|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConfigEntityContainer<T>
Represents an entity container in the configuration repository.
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.
Method Summary | |
---|---|
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 |
Methods inherited from interface com.neeve.config.IConfigContentNode |
---|
clear, isDirty, setDirty |
Methods inherited from interface com.neeve.config.IConfigNode |
---|
getAddress, getRepository |
Method Detail |
---|
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.
Iterator<T> iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |