Skip to content

attribute_value

wdadaptivepy model for Adaptive's Attribute Values.

AttributeValue dataclass

Bases: HierchialMetadata

wdadaptivepy model for Adaptive's Attribute Values.

Attributes:

Name Type Description
id int | None

Adaptive Attribute Value ID

code str | None

Adaptive Attribute Value Code

name str | None

Adaptive Attribute Value Name

display_name str | None

Adaptive Attribute Value Display Name

description str | None

Adaptive Attribute Value Description

__xml_tags dict[str, str | dict[str, type]]

wdadaptivepy Attribute Value XML tags

Source code in src/wdadaptivepy/models/attribute_value.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@dataclass(eq=False)
class AttributeValue(HierchialMetadata):
    """wdadaptivepy model for Adaptive's Attribute Values.

    Attributes:
        id: Adaptive Attribute Value ID
        code: Adaptive Attribute Value Code
        name: Adaptive Attribute Value Name
        display_name: Adaptive Attribute Value Display Name
        description: Adaptive Attribute Value Description
        __xml_tags: wdadaptivepy Attribute Value XML tags

    """

    id: int | None = field(
        default=None,
        metadata={
            "validator": int_or_none,
            "xml_parser": int_to_str,
            "xml_create": "",
            "xml_read": "id",
            "xml_update": "id",
            "xml_delete": "id",
        },
    )
    code: str | None = field(
        default=None,
        metadata={
            "validator": str_or_none,
            "xml_parser": str_to_str,
            "xml_create": "code",
            "xml_read": "code",
            "xml_update": "code",
            "xml_delete": "code",
        },
    )
    name: str | None = field(
        default=None,
        metadata={
            "validator": str_or_none,
            "xml_parser": str_to_str,
            "xml_create": "name",
            "xml_read": "name",
            "xml_update": "name",
            "xml_delete": "name",
        },
    )
    display_name: str | None = field(
        default=None,
        metadata={
            "validator": str_or_none,
            "xml_parser": str_to_str,
            "xml_create": "displayName",
            "xml_read": "displayName",
            "xml_update": "displayName",
            "xml_delete": "displayName",
        },
    )
    description: str | None = field(
        default=None,
        metadata={
            "validator": str_or_none,
            "xml_parser": str_to_str,
            "xml_create": "description",
            "xml_read": "description",
            "xml_update": "description",
            "xml_delete": "description",
        },
    )
    __xml_tags: ClassVar[dict[str, str | dict[str, type]]] = {
        "xml_create_parent_tag": "attribute",
        "xml_create_tag": "attributeValue",
        "xml_create_children": {},
        "xml_read_parent_tag": "attribute",
        "xml_read_tag": "attributeValue",
        "xml_read_children": {},
        "xml_update_parent_tag": "attribute",
        "xml_update_tag": "attributeValue",
        "xml_update_children": {},
        "xml_delete_parent_tag": "attribute",
        "xml_delete_tag": "attributeValue",
        "xml_delete_children": {},
    }