Package org.yamcs.xtce
Class NameDescription
java.lang.Object
org.yamcs.xtce.NameDescription
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AggregateDataType
,Algorithm
,Argument
,ArrayDataType
,BaseDataType
,Container
,Member
,MetaCommand
,Parameter
,SpaceSystem
The type definition used by most elements that require a name with optional descriptions.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
NameDescription.Builder<T extends NameDescription.Builder<T>>
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<AncillaryData>
Escape hatch for storing any type of informationprotected String
Name of the objectstatic char
path separator used in the fully qualified namesprotected String
fully qualified name (i.e. space system name+"/"+nameprotected XtceAliasSet
Set of aliases -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAliases
(XtceAliasSet newAliases) Adds all aliases to the existing aliases.void
Stores the given ancillary data.getName()
Returns the non qualified name of the itemstatic String
returns the last component of the fully qualified nameOPS name, in XTCE defined as alias for namespace "MDB:OPS Name"Returns the fully qualified name.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)static String
qualifiedName
(String root, String... subsystems) Concatenates the root with the subsystems and returns a qualified namevoid
setAliasSet
(XtceAliasSet aliasSet) Assign set of aliases with the object.void
setAncillaryData
(List<AncillaryData> ancillaryData) void
setLongDescription
(String longDescription) void
void
setQualifiedName
(String qname) void
setShortDescription
(String shortDescription)
-
Field Details
-
PATH_SEPARATOR
public static char PATH_SEPARATORpath separator used in the fully qualified names -
name
Name of the object -
qualifiedName
fully qualified name (i.e. space system name+"/"+name -
xtceAliasSet
Set of aliases -
ancillaryData
Escape hatch for storing any type of information
-
-
Constructor Details
-
NameDescription
-
NameDescription
-
-
Method Details
-
setName
-
getName
Returns the non qualified name of the item- Returns:
-
getAlias
-
setQualifiedName
-
addAncillaryData
Stores the given ancillary data. If an entry already existed for the applicable name, that entry will be overridden. -
setAncillaryData
-
getAncillaryData
-
getQualifiedName
Returns the fully qualified name.- Returns:
- a name of shape /system/subsys1/subsys2/item
-
setShortDescription
-
getShortDescription
-
setLongDescription
-
getLongDescription
-
setAliasSet
Assign set of aliases with the object. The previous aliases if any are replaced by the new ones.- Parameters:
aliasSet
- Set of aliases
-
getAliasSet
-
addAliases
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
-
qualifiedName
Concatenates the root with the subsystems and returns a qualified name- Parameters:
root
-
-
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
- Returns:
- fully qualified name of the subsystem of which this name is part of
-
getName
returns the last component of the fully qualified name- Parameters:
fqname
-- Returns:
-
getSubsystemName
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
-