class NistschemaSvIvAtomicTimeEnumeration1Type(Enum):
    VALUE_01_44_56 = XmlTime(1, 44, 56, 0)
    VALUE_07_44_41 = XmlTime(7, 44, 41, 0)
    VALUE_05_55_52 = XmlTime(5, 55, 52, 0)
    VALUE_21_59_07 = XmlTime(21, 59, 7, 0)
    VALUE_12_41_23 = XmlTime(12, 41, 23, 0)
    VALUE_02_47_45 = XmlTime(2, 47, 45, 0)
    VALUE_03_43_07 = XmlTime(3, 43, 7, 0)
    VALUE_02_00_14 = XmlTime(2, 0, 14, 0)
    VALUE_01_42_27 = XmlTime(1, 42, 27, 0)
Exemple #2
0
class NistschemaSvIvAtomicTimeEnumeration4Type(Enum):
    VALUE_18_04_07 = XmlTime(18, 4, 7, 0)
    VALUE_05_41_14 = XmlTime(5, 41, 14, 0)
    VALUE_15_07_15 = XmlTime(15, 7, 15, 0)
    VALUE_01_18_17 = XmlTime(1, 18, 17, 0)
    VALUE_01_13_21 = XmlTime(1, 13, 21, 0)
    VALUE_23_24_35 = XmlTime(23, 24, 35, 0)
    VALUE_15_25_08 = XmlTime(15, 25, 8, 0)
    VALUE_18_20_35 = XmlTime(18, 20, 35, 0)
    VALUE_03_53_17 = XmlTime(3, 53, 17, 0)
class FooType:
    class Meta:
        name = "fooType"

    foo: Optional[XmlTime] = field(
        default=None,
        metadata={
            "type": "Element",
            "namespace": "",
            "required": True,
            "min_inclusive": XmlTime(10, 21, 0, 0, -300),
            "max_inclusive": XmlTime(13, 20, 0, 0, -240),
        }
    )
class NistschemaSvIvAtomicTimeEnumeration5Type(Enum):
    VALUE_06_18_04 = XmlTime(6, 18, 4, 0)
    VALUE_07_45_10 = XmlTime(7, 45, 10, 0)
    VALUE_12_06_46 = XmlTime(12, 6, 46, 0)
    VALUE_21_01_58 = XmlTime(21, 1, 58, 0)
    VALUE_05_34_33 = XmlTime(5, 34, 33, 0)
    VALUE_22_22_06 = XmlTime(22, 22, 6, 0)
    VALUE_12_17_04 = XmlTime(12, 17, 4, 0)
Exemple #5
0
class NistschemaSvIvAtomicTimeEnumeration3Type(Enum):
    VALUE_03_47_11 = XmlTime(3, 47, 11, 0)
    VALUE_16_04_46 = XmlTime(16, 4, 46, 0)
    VALUE_01_35_26 = XmlTime(1, 35, 26, 0)
    VALUE_22_39_51 = XmlTime(22, 39, 51, 0)
    VALUE_15_13_10 = XmlTime(15, 13, 10, 0)
    VALUE_23_32_59 = XmlTime(23, 32, 59, 0)
    VALUE_02_39_19 = XmlTime(2, 39, 19, 0)
class NistschemaSvIvAtomicTimeMinInclusive1:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-time-minInclusive-1"
        namespace = "NISTSchema-SV-IV-atomic-time-minInclusive-1-NS"

    value: Optional[XmlTime] = field(default=None,
                                     metadata={
                                         "required": True,
                                         "min_inclusive": XmlTime(0, 0, 0, 0),
                                     })
class NistschemaSvIvAtomicTimeMaxInclusive3:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-time-maxInclusive-3"
        namespace = "NISTSchema-SV-IV-atomic-time-maxInclusive-3-NS"

    value: Optional[XmlTime] = field(default=None,
                                     metadata={
                                         "required": True,
                                         "max_inclusive": XmlTime(5, 7, 34, 0),
                                     })
class NistschemaSvIvAtomicTimeMaxExclusive5:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-time-maxExclusive-5"
        namespace = "NISTSchema-SV-IV-atomic-time-maxExclusive-5-NS"

    value: Optional[XmlTime] = field(default=None,
                                     metadata={
                                         "required": True,
                                         "max_exclusive":
                                         XmlTime(23, 59, 59, 0),
                                     })
Exemple #9
0
class NistschemaSvIvAtomicTimeMinExclusive4:
    class Meta:
        name = "NISTSchema-SV-IV-atomic-time-minExclusive-4"
        namespace = "NISTSchema-SV-IV-atomic-time-minExclusive-4-NS"

    value: Optional[XmlTime] = field(default=None,
                                     metadata={
                                         "required": True,
                                         "min_exclusive":
                                         XmlTime(18, 16, 28, 0),
                                     })
Exemple #10
0
 def test_from_value_simple(self):
     self.assertEqual(DataType.BOOLEAN, DataType.from_value(True))
     self.assertEqual(DataType.DECIMAL, DataType.from_value(Decimal(1.1)))
     self.assertEqual(DataType.QNAME, DataType.from_value(QName("a")))
     self.assertEqual(DataType.STRING, DataType.from_value("a"))
     self.assertEqual(DataType.DATE, DataType.from_value(XmlDate(2021, 1, 1)))
     self.assertEqual(DataType.TIME, DataType.from_value(XmlTime(12, 1, 1)))
     self.assertEqual(
         DataType.DATE_TIME, DataType.from_value(XmlDateTime(2002, 1, 1, 12, 1, 1))
     )
     self.assertEqual(DataType.STRING, DataType.from_value(self))
class NistschemaSvIvAtomicTimeEnumeration2Type(Enum):
    VALUE_10_32_33 = XmlTime(10, 32, 33, 0)
    VALUE_11_18_46 = XmlTime(11, 18, 46, 0)
    VALUE_06_00_33 = XmlTime(6, 0, 33, 0)
    VALUE_14_01_48 = XmlTime(14, 1, 48, 0)
    VALUE_11_14_02 = XmlTime(11, 14, 2, 0)
    VALUE_02_02_10 = XmlTime(2, 2, 10, 0)
class FooTypeFoo(Enum):
    VALUE_13_20_00_05_00 = XmlTime(13, 20, 0, 0, -300)
    VALUE_13_20_00 = XmlTime(13, 20, 0, 0)
    VALUE_01_50_40 = XmlTime(1, 50, 40, 0)
class NistschemaSvIvListTimeEnumeration5Type(Enum):
    VALUE_10_37_12_08_14_56_18_11_00_22_36_34_07_52_07_03_04_54_01_59_25_02_14_48_17_07_54 = (
        XmlTime(10, 37, 12, 0),
        XmlTime(8, 14, 56, 0),
        XmlTime(18, 11, 0, 0),
        XmlTime(22, 36, 34, 0),
        XmlTime(7, 52, 7, 0),
        XmlTime(3, 4, 54, 0),
        XmlTime(1, 59, 25, 0),
        XmlTime(2, 14, 48, 0),
        XmlTime(17, 7, 54, 0),
    )
    VALUE_23_02_41_07_44_16_06_05_22_13_27_20_23_25_59_06_39_31 = (
        XmlTime(23, 2, 41, 0),
        XmlTime(7, 44, 16, 0),
        XmlTime(6, 5, 22, 0),
        XmlTime(13, 27, 20, 0),
        XmlTime(23, 25, 59, 0),
        XmlTime(6, 39, 31, 0),
    )
    VALUE_17_45_57_04_40_44_08_51_49_21_18_57_04_18_44_07_51_13_01_26_10_05_09_29_13_55_53 = (
        XmlTime(17, 45, 57, 0),
        XmlTime(4, 40, 44, 0),
        XmlTime(8, 51, 49, 0),
        XmlTime(21, 18, 57, 0),
        XmlTime(4, 18, 44, 0),
        XmlTime(7, 51, 13, 0),
        XmlTime(1, 26, 10, 0),
        XmlTime(5, 9, 29, 0),
        XmlTime(13, 55, 53, 0),
    )
    VALUE_07_33_34_20_36_44_17_18_46_13_11_44_21_04_49_17_55_06_06_14_06_11_00_54_01_46_48_19_42_04 = (
        XmlTime(7, 33, 34, 0),
        XmlTime(20, 36, 44, 0),
        XmlTime(17, 18, 46, 0),
        XmlTime(13, 11, 44, 0),
        XmlTime(21, 4, 49, 0),
        XmlTime(17, 55, 6, 0),
        XmlTime(6, 14, 6, 0),
        XmlTime(11, 0, 54, 0),
        XmlTime(1, 46, 48, 0),
        XmlTime(19, 42, 4, 0),
    )
    VALUE_18_42_11_07_21_11_22_45_40_13_37_00_04_36_51_06_51_09_13_39_38_13_19_18_21_31_26 = (
        XmlTime(18, 42, 11, 0),
        XmlTime(7, 21, 11, 0),
        XmlTime(22, 45, 40, 0),
        XmlTime(13, 37, 0, 0),
        XmlTime(4, 36, 51, 0),
        XmlTime(6, 51, 9, 0),
        XmlTime(13, 39, 38, 0),
        XmlTime(13, 19, 18, 0),
        XmlTime(21, 31, 26, 0),
    )
class NistschemaSvIvListTimeEnumeration1Type(Enum):
    VALUE_16_22_20_01_19_11_21_37_24_12_13_13_14_56_46_19_02_14 = (
        XmlTime(16, 22, 20, 0),
        XmlTime(1, 19, 11, 0),
        XmlTime(21, 37, 24, 0),
        XmlTime(12, 13, 13, 0),
        XmlTime(14, 56, 46, 0),
        XmlTime(19, 2, 14, 0),
    )
    VALUE_07_17_31_13_47_35_14_07_26_07_08_30_15_18_40_09_10_42 = (
        XmlTime(7, 17, 31, 0),
        XmlTime(13, 47, 35, 0),
        XmlTime(14, 7, 26, 0),
        XmlTime(7, 8, 30, 0),
        XmlTime(15, 18, 40, 0),
        XmlTime(9, 10, 42, 0),
    )
    VALUE_18_10_11_22_21_23_23_58_22_17_08_12_08_14_52_00_17_12_03_05_44_20_23_12_19_52_22_06_09_32 = (
        XmlTime(18, 10, 11, 0),
        XmlTime(22, 21, 23, 0),
        XmlTime(23, 58, 22, 0),
        XmlTime(17, 8, 12, 0),
        XmlTime(8, 14, 52, 0),
        XmlTime(0, 17, 12, 0),
        XmlTime(3, 5, 44, 0),
        XmlTime(20, 23, 12, 0),
        XmlTime(19, 52, 22, 0),
        XmlTime(6, 9, 32, 0),
    )
    VALUE_21_21_52_03_24_38_12_34_13_20_23_03_05_52_11_11_36_11_01_00_51 = (
        XmlTime(21, 21, 52, 0),
        XmlTime(3, 24, 38, 0),
        XmlTime(12, 34, 13, 0),
        XmlTime(20, 23, 3, 0),
        XmlTime(5, 52, 11, 0),
        XmlTime(11, 36, 11, 0),
        XmlTime(1, 0, 51, 0),
    )
    VALUE_17_14_09_06_52_14_10_05_58_17_05_37_22_36_07 = (
        XmlTime(17, 14, 9, 0),
        XmlTime(6, 52, 14, 0),
        XmlTime(10, 5, 58, 0),
        XmlTime(17, 5, 37, 0),
        XmlTime(22, 36, 7, 0),
    )
    VALUE_07_57_55_14_57_18_15_27_38_20_24_52_05_27_55 = (
        XmlTime(7, 57, 55, 0),
        XmlTime(14, 57, 18, 0),
        XmlTime(15, 27, 38, 0),
        XmlTime(20, 24, 52, 0),
        XmlTime(5, 27, 55, 0),
    )
    VALUE_02_50_34_03_25_09_15_41_25_13_28_11_12_21_19_05_03_58_08_08_30_01_14_08_18_54_43 = (
        XmlTime(2, 50, 34, 0),
        XmlTime(3, 25, 9, 0),
        XmlTime(15, 41, 25, 0),
        XmlTime(13, 28, 11, 0),
        XmlTime(12, 21, 19, 0),
        XmlTime(5, 3, 58, 0),
        XmlTime(8, 8, 30, 0),
        XmlTime(1, 14, 8, 0),
        XmlTime(18, 54, 43, 0),
    )
class FooTypeFoo(Enum):
    VALUE_13_20_00_05_00 = XmlTime(13, 20, 0, 0, -300)
class NistschemaSvIvListTimeEnumeration3Type(Enum):
    VALUE_02_36_41_22_58_23_23_54_34_17_47_57_16_03_44_11_16_31 = (
        XmlTime(2, 36, 41, 0),
        XmlTime(22, 58, 23, 0),
        XmlTime(23, 54, 34, 0),
        XmlTime(17, 47, 57, 0),
        XmlTime(16, 3, 44, 0),
        XmlTime(11, 16, 31, 0),
    )
    VALUE_22_25_13_04_11_03_02_21_03_00_27_00_12_22_59_13_27_00 = (
        XmlTime(22, 25, 13, 0),
        XmlTime(4, 11, 3, 0),
        XmlTime(2, 21, 3, 0),
        XmlTime(0, 27, 0, 0),
        XmlTime(12, 22, 59, 0),
        XmlTime(13, 27, 0, 0),
    )
    VALUE_03_39_31_00_47_50_20_17_03_14_41_39_06_09_20_08_41_05_16_54_31_05_52_59 = (
        XmlTime(3, 39, 31, 0),
        XmlTime(0, 47, 50, 0),
        XmlTime(20, 17, 3, 0),
        XmlTime(14, 41, 39, 0),
        XmlTime(6, 9, 20, 0),
        XmlTime(8, 41, 5, 0),
        XmlTime(16, 54, 31, 0),
        XmlTime(5, 52, 59, 0),
    )
    VALUE_19_45_50_05_32_23_12_42_04_16_34_52_20_20_25_17_26_01_04_07_14_16_43_46_18_17_58 = (
        XmlTime(19, 45, 50, 0),
        XmlTime(5, 32, 23, 0),
        XmlTime(12, 42, 4, 0),
        XmlTime(16, 34, 52, 0),
        XmlTime(20, 20, 25, 0),
        XmlTime(17, 26, 1, 0),
        XmlTime(4, 7, 14, 0),
        XmlTime(16, 43, 46, 0),
        XmlTime(18, 17, 58, 0),
    )
    VALUE_20_36_58_21_24_31_20_49_32_03_41_03_20_16_36_21_16_33_09_49_53 = (
        XmlTime(20, 36, 58, 0),
        XmlTime(21, 24, 31, 0),
        XmlTime(20, 49, 32, 0),
        XmlTime(3, 41, 3, 0),
        XmlTime(20, 16, 36, 0),
        XmlTime(21, 16, 33, 0),
        XmlTime(9, 49, 53, 0),
    )
    VALUE_07_59_20_02_02_17_11_11_57_22_12_39_09_00_51_03_36_01_00_48_25_13_29_42 = (
        XmlTime(7, 59, 20, 0),
        XmlTime(2, 2, 17, 0),
        XmlTime(11, 11, 57, 0),
        XmlTime(22, 12, 39, 0),
        XmlTime(9, 0, 51, 0),
        XmlTime(3, 36, 1, 0),
        XmlTime(0, 48, 25, 0),
        XmlTime(13, 29, 42, 0),
    )
    VALUE_16_24_09_18_55_34_15_35_15_07_07_21_19_19_24_02_56_49_06_17_55_02_42_52 = (
        XmlTime(16, 24, 9, 0),
        XmlTime(18, 55, 34, 0),
        XmlTime(15, 35, 15, 0),
        XmlTime(7, 7, 21, 0),
        XmlTime(19, 19, 24, 0),
        XmlTime(2, 56, 49, 0),
        XmlTime(6, 17, 55, 0),
        XmlTime(2, 42, 52, 0),
    )
    VALUE_00_29_51_05_54_45_20_54_07_13_22_23_06_54_29_22_53_09_11_02_35_01_55_47 = (
        XmlTime(0, 29, 51, 0),
        XmlTime(5, 54, 45, 0),
        XmlTime(20, 54, 7, 0),
        XmlTime(13, 22, 23, 0),
        XmlTime(6, 54, 29, 0),
        XmlTime(22, 53, 9, 0),
        XmlTime(11, 2, 35, 0),
        XmlTime(1, 55, 47, 0),
    )
    VALUE_21_08_54_20_25_46_18_20_29_07_04_14_18_21_31_14_22_08_09_26_31 = (
        XmlTime(21, 8, 54, 0),
        XmlTime(20, 25, 46, 0),
        XmlTime(18, 20, 29, 0),
        XmlTime(7, 4, 14, 0),
        XmlTime(18, 21, 31, 0),
        XmlTime(14, 22, 8, 0),
        XmlTime(9, 26, 31, 0),
    )