public interface ModelEntityList<T extends ModelEntity> extends ModelEntity, java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all entities in the list.
|
T |
copy(java.lang.String newTag,
java.lang.String tag)
Creates a copy of an entity and inserts it in this list.
|
T |
copy(java.lang.String newTag,
java.lang.String tag,
java.lang.String model)
Creates a copy of an entity, inserts it in this list and assigns it to
the given model node.
|
T |
copyTo(java.lang.String newTag,
java.lang.String tag,
java.lang.String insertAfter)
Creates a copy of an entity and inserts it to this list at a specified
position.
|
T |
duplicate(java.lang.String newTag,
java.lang.String tag)
Creates a new entity with tag
newTag which is a
duplicate of the entity tagged tag . |
T |
duplicateTo(java.lang.String newTag,
java.lang.String tag,
java.lang.String insertAfter)
Creates a new entity with tag
newTag
duplicating the entity tagged tag and inserts
it in this list at a specified position. |
T |
get(java.lang.String tag)
Get an entity in the list with a given tag.
|
int |
index(java.lang.String tag)
Returns the position in the list of the object with the given tag.
|
void |
remove(java.lang.String tag)
Removes an entity.
|
int |
size()
Returns the number of entities.
|
java.lang.String[] |
tags()
Returns a string array with the tags of all entities.
|
java.lang.String |
uniquetag(java.lang.String tag)
Returns a unique tag in the list context.
|
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
void clear()
T copy(java.lang.String newTag, java.lang.String tag)
tag1/tag2/tag3
' etc.newTag
- The tag of the new entity.tag
- Tag of the entity to copy.T copy(java.lang.String newTag, java.lang.String tag, java.lang.String model)
tag1/tag2/tag3
' etc.newTag
- The tag of the new entity.tag
- Tag of the entity to copy.model
- Tag of the destination model node.T copyTo(java.lang.String newTag, java.lang.String tag, java.lang.String insertAfter)
tag1/tag2/tag3
' etc.newTag
- The tag of the new entity.tag
- Tag of the entity to copy.insertAfter
- The tag of the entity to insert the new entity after, or empty string
to insert the new entity first in the list.T duplicate(java.lang.String newTag, java.lang.String tag)
newTag
which is a
duplicate of the entity tagged tag
.newTag
- Tag of the new entity.tag
- Tag of entity to duplicate.T duplicateTo(java.lang.String newTag, java.lang.String tag, java.lang.String insertAfter)
newTag
duplicating the entity tagged tag
and inserts
it in this list at a specified position.newTag
- Tag of the new entity.tag
- Tag of the entity to duplicate.insertAfter
- The tag of the entity to insert the new entity after, or empty string
to insert the new entity first in the list.T get(java.lang.String tag)
tag
- Tag of entity to access.int index(java.lang.String tag)
tag
- Tag of entity to look up.void remove(java.lang.String tag)
tag
- Tag of entity to remove.int size()
java.lang.String[] tags()
java.lang.String uniquetag(java.lang.String tag)
tag
- The base for the unique tag.