Skip to content
Back to top
View this page

# DSMDefinitionsInspector

class dsviper.DSMDefinitionsInspector

  Bases: `object`

  DSMDefinitionsInspector(definitions). A class used to retrieve registered concepts, clubs, enumerations, structures from TypeName and attachments from identifier.

  attachment_function_pool_ids() → set[ValueUUId]

    Return the set of uuid for all function pools.

  attachment_identifiers() → set[str]

    Return the set of identifiers for all attachments.

  check_attachment(identifier: str) → DSMAttachment

    Return the attachment or raise.

  check_attachment_function_pool(uuid: ValueUUId) → DSMAttachmentFunctionPool

    check_attachmemt_function_pool($self, uuid) –

    Return the attachment function pool or raise.

  check_club(type_name: TypeName) → DSMClub

    Return the club or raise.

  check_concept(type_name: TypeName) → DSMConcept

    Return the concept or raise.

  check_enumeration(type_name: TypeName) → DSMEnumeration

    Return the enum or raise.

  check_function_pool(uuid: ValueUUId) → DSMFunctionPool

    Return the function pool or raise.

  check_structure(type_name: TypeName) → DSMStructure

    Return a struct or raise.

  club_type_names() → set[TypeName]

    Return the set of TypeName for all clubs.

  concept_type_names() → set[TypeName]

    Return the set of TypeName for all concepts.

  enumeration_type_names() → set[TypeName]

    Return the set of TypeName for all enums.

  function_pool_ids() → set[ValueUUId]

    Return the set of uuid for all function pools.

  name_spaces() → set[NameSpace]

    Return the set of NameSpace for all TypNames.

  query_attachment(identifier: str) → DSMAttachment | None

    Return the attachment or None.

  query_attachment_function_pool(uuid: ValueUUId) → DSMAttachmentFunctionPool | None

    Return the attachment function pool or None.

  query_club(type_name: TypeName) → DSMClub | None

    Return the club or None.

  query_concept(type_name: TypeName) → DSMConcept | None

    Return the concept or None.

  query_enumeration(type_name: TypeName) → DSMEnumeration | None

    Return the enum or None.

  query_function_pool(uuid: ValueUUId) → DSMFunctionPool | None

    Return the function pool or None.

  query_structure(type_name: TypeName) → DSMStructure | None

    Return a struct or None.

  representation(type_name: TypeName) → str

    Return the shortest representation of the TypeName.

  structure_type_names() → set[TypeName]

    Return the set of TypeName for all structs.