Package org.yamcs.xtce
Class NamedDescriptionIndex<T extends NameDescription>
- java.lang.Object
-
- org.yamcs.xtce.NamedDescriptionIndex<T>
-
- All Implemented Interfaces:
Serializable,Iterable<T>
public class NamedDescriptionIndex<T extends NameDescription> extends Object implements Serializable, Iterable<T>
Keeps a list ofNameDescriptionobjects with corresponding indexes to be able to retrieve them in any namespace. Note that the names are case sensitive while aliases are not.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedDescriptionIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T o)Tget(String qualifiedName)returns the object based on its qualified nameTget(String nameSpace, String name)returns the object in namespaceCollection<T>getObjects()returns a collection of all the objects (parameters) in the indexIterator<T>iterator()intsize()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
add
public void add(T o)
-
get
public T get(String nameSpace, String name)
returns the object in namespace- Parameters:
name-nameSpace-- Returns:
-
getObjects
public Collection<T> getObjects()
returns a collection of all the objects (parameters) in the index- Returns:
-
size
public int size()
- Returns:
- number of objects in index
-
-