A helper class that encapsulates everything we need to know about the
way an attribute is used within a binding class.
|
__init__(self,
name,
id,
key,
data_type,
unicode_default=None,
fixed=False,
required=False,
prohibited=False)
Create an AttributeUse instance. |
source code
|
|
pyxb.namespace.ExpandedName
|
name(self)
The expanded name of the element. |
source code
|
|
|
defaultValue(self)
The default value of the attribute. |
source code
|
|
|
fixed(self)
True iff the value of the attribute cannot be changed. |
source code
|
|
|
required(self)
True iff the attribute must be assigned a value. |
source code
|
|
|
prohibited(self)
True iff the attribute must not be assigned a value. |
source code
|
|
|
provided(self,
ctd_instance)
True iff the given instance has been explicitly given a
value for the attribute. |
source code
|
|
|
id(self)
Tag used within Python code for the attribute. |
source code
|
|
|
key(self)
String used as key within object dictionary when storing attribute
value. |
source code
|
|
|
|
|
__getValue(self,
ctd_instance)
Retrieve the value information for this attribute in a binding
instance. |
source code
|
|
|
|
|
value(self,
ctd_instance)
Get the value of the attribute from the instance. |
source code
|
|
|
__setValue(self,
ctd_instance,
new_value,
provided) |
source code
|
|
|
reset(self,
ctd_instance)
Set the value of the attribute in the given instance to be its
default value, and mark that it has not been provided. |
source code
|
|
|
addDOMAttribute(self,
dom_support,
ctd_instance,
element)
If this attribute as been set, add the corresponding attribute to the
DOM element. |
source code
|
|
|
validate(self,
ctd_instance)
Validate the instance against the requirements imposed by this
attribute use. |
source code
|
|
|
set(self,
ctd_instance,
new_value)
Set the value of the attribute. |
source code
|
|
|
_description(self,
name_only=False,
user_documentation=True) |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
__name = None
ExpandedName of the attribute
|
|
__id = None
Identifier used for this attribute within the owning class
|
|
__key = None
Private Python attribute used in instances to hold the attribute
value
|
|
__dataType = None
The pyxb.binding.basis.simpleTypeDefinition for values
of the attribute
|
|
__unicodeDefault = None
The default attribute value as a unicode string, or None
|
|
__defaultValue = None
The default value as an instance of __dataType, or
None
|
|
__fixed = False
True if the attribute value cannot be changed
|
|
__required = False
True if the attribute must appear in every instance of
the type
|
|
__prohibited = False
True if the attribute must not appear in any instance of
the type
|