Login
Back to bricks list
Introduction Version

Tag

Attributes

is_propagable: boolkey: strorigins: TagOriginsvalue: Union

Functions

__INIT__

Initialize self. See help(type(self)) for accurate signature.

Parameters:
NameTypeDefault valueDescription
keystr
valueUnion
is_propagablebool False
originsTagOrigins
GET_STR_VALUE
Return type:
str
ORIGIN_IS_DEFINED
Return type:
bool
PROPAGATE

Return a new instance of tag with the new origin

Parameters:
NameTypeDefault valueDescription
origin_typeTagOriginType
origin_idstr
Return type:
Tag
SET_KEY
Parameters:
NameTypeDefault valueDescription
keystr
SET_VALUE
Parameters:
NameTypeDefault valueDescription
valueUnion
TO_DTO
Return type:
TagDTO
CHECK_PARSE_TAG_KEY - @staticmethod
Parameters:
NameTypeDefault valueDescription
tag_keystr
Return type:
str
CHECK_PARSE_TAG_STR - @staticmethod

Method that check the length of the tag str (key or value) and that the tag str is valid

Parameters:
NameTypeDefault valueDescription
tag_strUnion
Return type:
Union
FROM_DTO - @staticmethod
Parameters:
NameTypeDefault valueDescription
dtoTagDTO
Return type:
Tag
FROM_STRING - @staticmethod
Parameters:
NameTypeDefault valueDescription
tag_strstr
Return type:
Tag