コード例 #1
0
 def reset_attribute_type(cls, attr_type: AttrType, use_str: bool = True):
     """Reset the attribute type to string or any simple type."""
     attr_type.qname = str(
         DataType.STRING if use_str else DataType.ANY_SIMPLE_TYPE)
     attr_type.native = True
     attr_type.circular = False
     attr_type.forward = False
コード例 #2
0
 def reset_attribute_type(cls, attr_type: AttrType):
     """Reset the attribute type to native string."""
     attr_type.name = DataType.STRING.code
     attr_type.native = True
     attr_type.circular = False
     attr_type.forward = False
コード例 #3
0
 def reset_attribute_type(cls, attr_type: AttrType):
     """Reset the attribute type to native string."""
     attr_type.qname = QName(Namespace.XS.uri, DataType.STRING.code)
     attr_type.native = True
     attr_type.circular = False
     attr_type.forward = False