DefinitionsMapper¶
- class dsviper.DefinitionsMapper(source_definitions, target_definitions)¶
Bases:
objectRewrites a Type, a Value or an Attachment of source_definitions into the matching declaration of target_definitions, matched by name.
Every concept, club, enumeration, structure and attachment of the source must be declared in the target under the same qualified name, or the constructor raises ViperError. type(), value() and attachment() raise ViperError for what the source does not declare. Not part of the supported surface.
- attachment(attachment: Attachment) Attachment¶
Return the mapped attachment.
- source() DefinitionsConst¶
Return the source.
- target() DefinitionsConst¶
Return the target.