Package net.sf.gridarta.model.data
Interface NamedObjects<E extends NamedObject>
-
- All Superinterfaces:
java.lang.Iterable<E>,java.io.Serializable
- All Known Subinterfaces:
AnimationObjects,FaceObjects
- All Known Implementing Classes:
AbstractAnimationObjects,AbstractFaceObjects,AbstractNamedObjects,DefaultAnimationObjects,DefaultFaceObjects
public interface NamedObjects<E extends NamedObject> extends java.lang.Iterable<E>, java.io.SerializableThis class manages NamedObjects, managing their tree as well as providing a method for showing a dialog for browsing their tree and selecting one from it. NamedObjects are iterated in Unicode (=ASCII) order.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsKey(@NotNull java.lang.String name)Check whether an object is defined.Eget(@NotNull java.lang.String objectName)Gets a AbstractNamedObject.@NotNull java.lang.StringgetName()Returns the tree name.@NotNull NamedTreeNode<E>getTreeRoot()Get the object tree root.java.util.Iterator<E>iterator()NamedObjects are iterated in Unicode (=case sensitive ASCII) order.intsize()Get the number of objects.
-
-
-
Method Detail
-
getTreeRoot
@NotNull @NotNull NamedTreeNode<E> getTreeRoot()
Get the object tree root.- Returns:
- object tree root
-
getName
@NotNull @NotNull java.lang.String getName()
Returns the tree name.- Returns:
- the tree name
-
size
int size()
Get the number of objects.- Returns:
- object count
-
get
@Nullable E get(@NotNull @NotNull java.lang.String objectName)
Gets a AbstractNamedObject.- Parameters:
objectName- name of object- Returns:
- named object for name
objectNameornullif none found
-
containsKey
boolean containsKey(@NotNull @NotNull java.lang.String name)Check whether an object is defined.- Parameters:
name- object name to look for- Returns:
trueif an object with that name is defined, otherwisefalse
-
iterator
java.util.Iterator<E> iterator()
NamedObjects are iterated in Unicode (=case sensitive ASCII) order.- Specified by:
iteratorin interfacejava.lang.Iterable<E extends NamedObject>
-
-