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
Nested ClassesModifier and TypeClassDescriptionstatic classNameDescription.Builder<T extends NameDescription.Builder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AncillaryData>Escape hatch for storing any type of informationprotected StringName of the objectstatic charpath separator used in the fully qualified namesprotected Stringfully qualified name (i.e. space system name+"/"+nameprotected XtceAliasSetSet of aliases -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAliases(XtceAliasSet newAliases) Adds all aliases to the existing aliases.voidStores the given ancillary data.getName()Returns the non qualified name of the itemstatic Stringreturns 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 StringgetSubsystemName(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 StringqualifiedName(String root, String... subsystems) Concatenates the root with the subsystems and returns a qualified namevoidsetAliasSet(XtceAliasSet aliasSet) Assign set of aliases with the object.voidsetAncillaryData(List<AncillaryData> ancillaryData) voidsetLongDescription(String longDescription) voidvoidsetQualifiedName(String qname) voidsetShortDescription(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 null
-
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
-