| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
cscRoot --+
|
AttributeUse
A helper class that encapsulates everything we need to know about the way an attribute is used within a binding class.
Attributes are stored internally as pairs (provided,
value), where provided is a boolean indicating
whether a value for the attribute was provided externally, and
value is an instance of the attribute datatype. The
provided flag is used to determine whether an XML attribute
should be added to a created DOM node when generating the XML
corresponding to a binding instance.
|
|||
|
|||
| pyxb.namespace.ExpandedName |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
__name = NoneExpandedName of the attribute |
|||
__id = NoneIdentifier used for this attribute within the owning class |
|||
__key = NonePrivate Python attribute used in instances to hold the attribute value |
|||
__dataType = NoneThe pyxb.binding.basis.simpleTypeDefinition for values of the attribute |
|||
__unicodeDefault = NoneThe default attribute value as a unicode string, or None
|
|||
__defaultValue = NoneThe default value as an instance of __dataType, or None
|
|||
__fixed = FalseTrue if the attribute value cannot be changed
|
|||
__required = FalseTrue if the attribute must appear in every instance of
the type
|
|||
__prohibited = FalseTrue if the attribute must not appear in any instance of
the type
|
|||
|
|||
|
Inherited from |
|||
|
|||
Create an AttributeUse instance.
|
This is used for things like only generating an XML attribute assignment when a value was originally given (even if that value happens to be the default). |
Tag used within Python code for the attribute. This is not used directly in the default code generation template. |
Retrieve the value information for this attribute in a binding instance.
|
Validate the instance against the requirements imposed by this attribute use. There is no return value; calls raise an exception if the content does not validate.
|
Set the value of the attribute. This validates the value against the data type, creating a new instance if necessary.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 9 14:08:49 2011 | http://epydoc.sourceforge.net |