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 of NameDescription objects 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:
  • Constructor Details

    • NamedDescriptionIndex

      public NamedDescriptionIndex()
  • Method Details

    • add

      public void add(T o)
    • get

      public T get(String qualifiedName)
      returns the object based on its qualified name
    • 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
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends NameDescription>