Class NameDescription

    • Field Detail

      • PATH_SEPARATOR

        public static char PATH_SEPARATOR
        path separator used in the fully qualified names
      • name

        protected String name
        Name of the object
      • qualifiedName

        protected String qualifiedName
        fully qualified name (i.e. space system name+"/"+name
      • xtceAliasSet

        protected XtceAliasSet xtceAliasSet
        Set of aliases
      • ancillaryData

        protected List<AncillaryData> ancillaryData
        Escape hatch for storing any type of information
    • Method Detail

      • setName

        public void setName​(String newName)
      • getName

        public String getName()
        Returns the non qualified name of the item
        Returns:
      • setQualifiedName

        public void setQualifiedName​(String qname)
      • addAncillaryData

        public void addAncillaryData​(AncillaryData data)
        Stores the given ancillary data. If an entry already existed for the applicable name, that entry will be overriden.
      • setAncillaryData

        public void setAncillaryData​(List<AncillaryData> ancillaryData)
      • getQualifiedName

        public String getQualifiedName()
        Returns the fully qualified name.
        Returns:
        a name of shape /system/subsys1/subsys2/item
      • setShortDescription

        public void setShortDescription​(String shortDescription)
      • getShortDescription

        public String getShortDescription()
      • setLongDescription

        public void setLongDescription​(String longDescription)
      • getLongDescription

        public String getLongDescription()
      • setAliasSet

        public void setAliasSet​(XtceAliasSet aliasSet)
        Assign set of aliases with the object. The previous aliases if any are replaced by the new ones.
        Parameters:
        aliasSet - Set of aliases
      • addAliases

        public void addAliases​(XtceAliasSet newAliases)
        Adds all aliases to the existing aliases. The new aliases may overwrite already existing aliases - in this case the old ones will be replaced with the new ones.
        Parameters:
        newAliases -
      • addAlias

        public void addAlias​(String namespace,
                             String alias)
      • getOpsName

        public String getOpsName()
        OPS name, in XTCE defined as alias for namespace "MDB:OPS Name"
        Returns:
        OPS Name alias if defined, otherwise name in the default namespace
      • getSubsystemName

        public String getSubsystemName()
        Returns:
        fully qualified name of the subsystem of which this name is part of
      • getName

        public static String getName​(String fqname)
        returns the last component of the fully qualified name
        Parameters:
        fqname -
        Returns:
      • getSubsystemName

        public static String getSubsystemName​(String fqname)
        returns the subsystem fully qualified name where this name is valid (i.e. the full path of the directory name if it were a filesystem)
        Parameters:
        fqname -
        Returns:
        the fully qualified name