xsdata.models.mixins module

class xsdata.models.mixins.BaseModel(*args, **kwargs)[source]

Bases: object

Parameters
  • args (Any) –

  • kwargs (Any) –

classmethod create(**kwargs)[source]
Parameters
  • cls (Type[~T]) –

  • kwargs (Any) –

Return type

~T

class xsdata.models.mixins.ElementBase(index=<factory>, ns_map=<factory>)[source]

Bases: xsdata.models.mixins.BaseModel

Parameters
  • index (int) –

  • ns_map (Dict) –

index: int = None
ns_map: Dict = None
property class_name
Return type

str

property default_type
Return type

DataType

property default_value
Return type

Any

property display_help
Return type

Optional[str]

property extends
Return type

Optional[str]

property extensions
Return type

Iterator[str]

property has_children
Return type

bool

property has_form
Return type

bool

property is_abstract
Return type

bool

property is_attribute
Return type

bool

property is_fixed
Return type

bool

property is_mixed
Return type

bool

property is_nillable
Return type

bool

property is_qualified
Return type

bool

property is_ref
Return type

bool

property is_wildcard
Return type

bool

property prefix
Return type

Optional[str]

property raw_namespace
Return type

Optional[str]

property raw_type
Return type

Optional[str]

property real_name
Return type

str

property real_type
Return type

Optional[str]

property substitutions
Return type

List[str]

get_restrictions()[source]
Return type

Dict[str, Any]

schema_prefix()[source]
Return type

Optional[str]

children()[source]
Return type

Iterator[ElementBase]