TypeName¶
- class dsviper.TypeName(name_space, name)¶
Bases:
objectDescribes the name of a type: its namespace and its identifier.
Build one to look a registered type up by name - that is what DefinitionsInspector.check_structure, check_concept, check_club and check_enumeration take. An attachment is not a type but a declaration binding a concept to one, so check_attachment takes its identifier instead. Pass NameSpace.GLOBAL for a type of the global namespace.
Two are equal when their namespaces’ uuids and their names are.
- name() str¶
Return the name alone, without the namespace it sits in.
- representation() str¶
Return the name qualified by its namespace, App::Profile.
The bare name for a type of the global namespace. Where a shorter spelling may still be unambiguous, DefinitionsInspector.representation answers that instead, knowing what else is registered.
It is a name, not an identity: two namespaces may share one.