Package org.yamcs.xtce.xml
Class XtceAliasSet
- java.lang.Object
-
- org.yamcs.xtce.xml.XtceAliasSet
-
- All Implemented Interfaces:
Serializable
public class XtceAliasSet extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XtceAliasSet
NO_ALIAS
-
Constructor Summary
Constructors Constructor Description XtceAliasSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlias(String namespace, String alias)
Add alias name, only one name per namespace is possibleString
getAlias(String nameSpace)
Returns the name of the object in the given namespaceMap<String,String>
getAliases()
Returns a readonly map, mapping namespace to aliasSet<String>
getNamespaces()
int
size()
String
toString()
-
-
-
Field Detail
-
NO_ALIAS
public static XtceAliasSet NO_ALIAS
-
-
Method Detail
-
addAlias
public void addAlias(String namespace, String alias)
Add alias name, only one name per namespace is possible- Parameters:
namespace
- Namespace the alias adheres toalias
- name in the given namespace
-
getAlias
public String getAlias(String nameSpace)
Returns the name of the object in the given namespace- Parameters:
nameSpace
- Namespace the name should be from- Returns:
- Name of the object in the given namespace, can be null
-
getAliases
public Map<String,String> getAliases()
Returns a readonly map, mapping namespace to alias
-
size
public int size()
-
-