| |
- pyxb.binding.basis.complexTypeDefinition(pyxb.binding.basis._TypeBinding_mixin, pyxb.utils.utility._DeconflictSymbols_mixin, pyxb.binding.basis._DynamicCreate_mixin)
-
- CTD_ANON
- CTD_ANON_
- CTD_ANON_2
class CTD_ANON(pyxb.binding.basis.complexTypeDefinition) |
|
# Complex type CTD_ANON with content type EMPTY |
|
- Method resolution order:
- CTD_ANON
- pyxb.binding.basis.complexTypeDefinition
- pyxb.binding.basis._TypeBinding_mixin
- pyxb.utils.utility.Locatable_mixin
- pyxb.utils.utility._DeconflictSymbols_mixin
- pyxb.binding.basis._DynamicCreate_mixin
- pyxb.cscRoot
- __builtin__.object
Data descriptors defined here:
- jPackage
- Get the value of the attribute from the instance.
- xmlNamespace
- Get the value of the attribute from the instance.
Methods inherited from pyxb.binding.basis.complexTypeDefinition:
- __init__(self, *args, **kw)
- Create a new instance of this binding.
Arguments are used as transition values along the content model.
Keywords are passed to the constructor of any simple content, or used
to initialize attribute and element values whose L{id
<content.ElementUse.id>} (not L{name <content.ElementUse.name>})
matches the keyword.
@keyword _dom_node: The node to use as the source of binding content.
@type _dom_node: C{xml.dom.Element}
- append(self, value, element_use=None, maybe_element=True, _fallback_namespace=None, require_validation=True)
- Add the value to the instance.
The value should be a DOM node or other value that is or can be
converted to a binding instance. If the instance has a DFA state, the
value must be permitted by the content model.
@raise pyxb.ExtraContentError: the value is not permitted at the
current state of the content model.
- content(self)
- Return the content of the element.
This must be a complex type with complex content. The return value is
a list of the element and non-element content in the order in which it
was added.
@raise pyxb.NotComplexContentError: this is not a complex type with mixed or element-only content
- extend(self, value_list, _fallback_namespace=None)
- Invoke L{append} for each value in the list, in turn.
- reset(self)
- Reset the instance.
This resets all element and attribute fields, and discards any
recorded content. It resets the DFA to the initial state of the
content model.
- value(self)
- Return the value of the element.
This must be a complex type with simple content. The returned value
is expected to be an instance of some L{simpleTypeDefinition} class.
@raise pyxb.NotSimpleContentError: this is not a complex type with simple content
- wildcardAttributeMap(self)
- Obtain access to wildcard attributes.
The return value is C{None} if this type does not support wildcard
attributes. If wildcard attributes are allowed, the return value is a
map from QNames to the unicode string value of the corresponding
attribute.
@todo: The map keys should be namespace extended names rather than
QNames, as the in-scope namespace may not be readily available to the
user.
- wildcardElements(self)
- Obtain access to wildcard elements.
The return value is C{None} if the content model for this type does not
support wildcard elements. If wildcard elements are allowed, the
return value is a list of values corresponding to conformant
unrecognized elements, in the order in which they were encountered.
If the containing binding was created from an XML document and enough
information was present to determine the binding of the member
element, the value is a binding instance. Otherwise, the value is the
original DOM Element node.
- xsdConstraintsOK(self)
- Validate the content against the simple type.
@return: C{True} if the content validates against its type.
@raise pyxb.NotSimpleContentError: this type does not have simple content.
@raise pyxb.MissingContentError: the content of this type has not been set
Methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- __setattr__(self, name, value)
- toDOM(self, bds=None, parent=None, element_name=None)
- Convert this instance to a DOM node.
The name of the top-level element is either the name of the L{element}
instance associated with this instance, or the XML name of the type of
this instance.
@param bds: Support for customizing the generated document
@type bds: L{pyxb.utils.domutils.BindingDOMSupport}
@param parent: If C{None}, a standalone document is created;
otherwise, the created element is a child of the given element.
@type parent: C{xml.dom.Element} or C{None}
@rtype: C{xml.dom.Document}
- toxml(self, bds=None, root_only=False)
- Shorthand to get the object as an XML document.
If you want to set the default namespace, pass in a pre-configured
C{bds}.
@param bds: Optional L{pyxb.utils.domutils.BindingDOMSupport} instance
to use for creation. If not provided (default), a new generic one is
created.
- validateBinding(self)
- Check whether the binding content matches its content model.
@return: C{True} if validation succeeds.
@raise pyxb.BindingValidationError: complex content does not match model
@raise pyxb.BadTypeValueError: simple content fails to satisfy constraints
Class methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- Factory(cls, *args, **kw) from __builtin__.type
- Provide a common mechanism to create new instances of this type.
The class constructor won't do, because you can't create
instances of union types.
This method may be overridden in subclasses (like STD_union). Pre-
and post-creation actions can be customized on a per-class instance by
overriding the L{_PreFactory_vx} and L{_postFactory_vx} methods.
@keyword _dom_node: If provided, the value must be a DOM node, the
content of which will be used to set the value of the instance.
@keyword _apply_whitespace_facet: If C{True} and this is a
simpleTypeDefinition with a whiteSpace facet, the first argument will
be normalized in accordance with that facet prior to invoking the
parent constructor.
@keyword _validate_constraints: If C{True}, any constructed value is
checked against constraints applied to the union as well as the member
type.
@keyword _require_value: If C{False} (default), it is permitted to
create a value without an initial value. If C{True} and no initial
value was provided, causes L{pyxb.MissingContentError} to be raised.
Only applies to simpleTypeDefinition instances; this is used when
creating values from DOM nodes.
Data descriptors inherited from pyxb.utils.utility._DeconflictSymbols_mixin:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class CTD_ANON_(pyxb.binding.basis.complexTypeDefinition) |
|
# Complex type CTD_ANON_ with content type EMPTY |
|
- Method resolution order:
- CTD_ANON_
- pyxb.binding.basis.complexTypeDefinition
- pyxb.binding.basis._TypeBinding_mixin
- pyxb.utils.utility.Locatable_mixin
- pyxb.utils.utility._DeconflictSymbols_mixin
- pyxb.binding.basis._DynamicCreate_mixin
- pyxb.cscRoot
- __builtin__.object
Data descriptors defined here:
- relativePathSchemafile
- Get the value of the attribute from the instance.
- schemaName
- Get the value of the attribute from the instance.
- xmlNamespace
- Get the value of the attribute from the instance.
Methods inherited from pyxb.binding.basis.complexTypeDefinition:
- __init__(self, *args, **kw)
- Create a new instance of this binding.
Arguments are used as transition values along the content model.
Keywords are passed to the constructor of any simple content, or used
to initialize attribute and element values whose L{id
<content.ElementUse.id>} (not L{name <content.ElementUse.name>})
matches the keyword.
@keyword _dom_node: The node to use as the source of binding content.
@type _dom_node: C{xml.dom.Element}
- append(self, value, element_use=None, maybe_element=True, _fallback_namespace=None, require_validation=True)
- Add the value to the instance.
The value should be a DOM node or other value that is or can be
converted to a binding instance. If the instance has a DFA state, the
value must be permitted by the content model.
@raise pyxb.ExtraContentError: the value is not permitted at the
current state of the content model.
- content(self)
- Return the content of the element.
This must be a complex type with complex content. The return value is
a list of the element and non-element content in the order in which it
was added.
@raise pyxb.NotComplexContentError: this is not a complex type with mixed or element-only content
- extend(self, value_list, _fallback_namespace=None)
- Invoke L{append} for each value in the list, in turn.
- reset(self)
- Reset the instance.
This resets all element and attribute fields, and discards any
recorded content. It resets the DFA to the initial state of the
content model.
- value(self)
- Return the value of the element.
This must be a complex type with simple content. The returned value
is expected to be an instance of some L{simpleTypeDefinition} class.
@raise pyxb.NotSimpleContentError: this is not a complex type with simple content
- wildcardAttributeMap(self)
- Obtain access to wildcard attributes.
The return value is C{None} if this type does not support wildcard
attributes. If wildcard attributes are allowed, the return value is a
map from QNames to the unicode string value of the corresponding
attribute.
@todo: The map keys should be namespace extended names rather than
QNames, as the in-scope namespace may not be readily available to the
user.
- wildcardElements(self)
- Obtain access to wildcard elements.
The return value is C{None} if the content model for this type does not
support wildcard elements. If wildcard elements are allowed, the
return value is a list of values corresponding to conformant
unrecognized elements, in the order in which they were encountered.
If the containing binding was created from an XML document and enough
information was present to determine the binding of the member
element, the value is a binding instance. Otherwise, the value is the
original DOM Element node.
- xsdConstraintsOK(self)
- Validate the content against the simple type.
@return: C{True} if the content validates against its type.
@raise pyxb.NotSimpleContentError: this type does not have simple content.
@raise pyxb.MissingContentError: the content of this type has not been set
Methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- __setattr__(self, name, value)
- toDOM(self, bds=None, parent=None, element_name=None)
- Convert this instance to a DOM node.
The name of the top-level element is either the name of the L{element}
instance associated with this instance, or the XML name of the type of
this instance.
@param bds: Support for customizing the generated document
@type bds: L{pyxb.utils.domutils.BindingDOMSupport}
@param parent: If C{None}, a standalone document is created;
otherwise, the created element is a child of the given element.
@type parent: C{xml.dom.Element} or C{None}
@rtype: C{xml.dom.Document}
- toxml(self, bds=None, root_only=False)
- Shorthand to get the object as an XML document.
If you want to set the default namespace, pass in a pre-configured
C{bds}.
@param bds: Optional L{pyxb.utils.domutils.BindingDOMSupport} instance
to use for creation. If not provided (default), a new generic one is
created.
- validateBinding(self)
- Check whether the binding content matches its content model.
@return: C{True} if validation succeeds.
@raise pyxb.BindingValidationError: complex content does not match model
@raise pyxb.BadTypeValueError: simple content fails to satisfy constraints
Class methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- Factory(cls, *args, **kw) from __builtin__.type
- Provide a common mechanism to create new instances of this type.
The class constructor won't do, because you can't create
instances of union types.
This method may be overridden in subclasses (like STD_union). Pre-
and post-creation actions can be customized on a per-class instance by
overriding the L{_PreFactory_vx} and L{_postFactory_vx} methods.
@keyword _dom_node: If provided, the value must be a DOM node, the
content of which will be used to set the value of the instance.
@keyword _apply_whitespace_facet: If C{True} and this is a
simpleTypeDefinition with a whiteSpace facet, the first argument will
be normalized in accordance with that facet prior to invoking the
parent constructor.
@keyword _validate_constraints: If C{True}, any constructed value is
checked against constraints applied to the union as well as the member
type.
@keyword _require_value: If C{False} (default), it is permitted to
create a value without an initial value. If C{True} and no initial
value was provided, causes L{pyxb.MissingContentError} to be raised.
Only applies to simpleTypeDefinition instances; this is used when
creating values from DOM nodes.
Data descriptors inherited from pyxb.utils.utility._DeconflictSymbols_mixin:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class CTD_ANON_2(pyxb.binding.basis.complexTypeDefinition) |
|
# Complex type CTD_ANON_2 with content type ELEMENT_ONLY |
|
- Method resolution order:
- CTD_ANON_2
- pyxb.binding.basis.complexTypeDefinition
- pyxb.binding.basis._TypeBinding_mixin
- pyxb.utils.utility.Locatable_mixin
- pyxb.utils.utility._DeconflictSymbols_mixin
- pyxb.binding.basis._DynamicCreate_mixin
- pyxb.cscRoot
- __builtin__.object
Data descriptors defined here:
- EntitySchema
- Return the value for this use within the given instance.
- XmlNamespace2JPackage
- Return the value for this use within the given instance.
Methods inherited from pyxb.binding.basis.complexTypeDefinition:
- __init__(self, *args, **kw)
- Create a new instance of this binding.
Arguments are used as transition values along the content model.
Keywords are passed to the constructor of any simple content, or used
to initialize attribute and element values whose L{id
<content.ElementUse.id>} (not L{name <content.ElementUse.name>})
matches the keyword.
@keyword _dom_node: The node to use as the source of binding content.
@type _dom_node: C{xml.dom.Element}
- append(self, value, element_use=None, maybe_element=True, _fallback_namespace=None, require_validation=True)
- Add the value to the instance.
The value should be a DOM node or other value that is or can be
converted to a binding instance. If the instance has a DFA state, the
value must be permitted by the content model.
@raise pyxb.ExtraContentError: the value is not permitted at the
current state of the content model.
- content(self)
- Return the content of the element.
This must be a complex type with complex content. The return value is
a list of the element and non-element content in the order in which it
was added.
@raise pyxb.NotComplexContentError: this is not a complex type with mixed or element-only content
- extend(self, value_list, _fallback_namespace=None)
- Invoke L{append} for each value in the list, in turn.
- reset(self)
- Reset the instance.
This resets all element and attribute fields, and discards any
recorded content. It resets the DFA to the initial state of the
content model.
- value(self)
- Return the value of the element.
This must be a complex type with simple content. The returned value
is expected to be an instance of some L{simpleTypeDefinition} class.
@raise pyxb.NotSimpleContentError: this is not a complex type with simple content
- wildcardAttributeMap(self)
- Obtain access to wildcard attributes.
The return value is C{None} if this type does not support wildcard
attributes. If wildcard attributes are allowed, the return value is a
map from QNames to the unicode string value of the corresponding
attribute.
@todo: The map keys should be namespace extended names rather than
QNames, as the in-scope namespace may not be readily available to the
user.
- wildcardElements(self)
- Obtain access to wildcard elements.
The return value is C{None} if the content model for this type does not
support wildcard elements. If wildcard elements are allowed, the
return value is a list of values corresponding to conformant
unrecognized elements, in the order in which they were encountered.
If the containing binding was created from an XML document and enough
information was present to determine the binding of the member
element, the value is a binding instance. Otherwise, the value is the
original DOM Element node.
- xsdConstraintsOK(self)
- Validate the content against the simple type.
@return: C{True} if the content validates against its type.
@raise pyxb.NotSimpleContentError: this type does not have simple content.
@raise pyxb.MissingContentError: the content of this type has not been set
Methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- __setattr__(self, name, value)
- toDOM(self, bds=None, parent=None, element_name=None)
- Convert this instance to a DOM node.
The name of the top-level element is either the name of the L{element}
instance associated with this instance, or the XML name of the type of
this instance.
@param bds: Support for customizing the generated document
@type bds: L{pyxb.utils.domutils.BindingDOMSupport}
@param parent: If C{None}, a standalone document is created;
otherwise, the created element is a child of the given element.
@type parent: C{xml.dom.Element} or C{None}
@rtype: C{xml.dom.Document}
- toxml(self, bds=None, root_only=False)
- Shorthand to get the object as an XML document.
If you want to set the default namespace, pass in a pre-configured
C{bds}.
@param bds: Optional L{pyxb.utils.domutils.BindingDOMSupport} instance
to use for creation. If not provided (default), a new generic one is
created.
- validateBinding(self)
- Check whether the binding content matches its content model.
@return: C{True} if validation succeeds.
@raise pyxb.BindingValidationError: complex content does not match model
@raise pyxb.BadTypeValueError: simple content fails to satisfy constraints
Class methods inherited from pyxb.binding.basis._TypeBinding_mixin:
- Factory(cls, *args, **kw) from __builtin__.type
- Provide a common mechanism to create new instances of this type.
The class constructor won't do, because you can't create
instances of union types.
This method may be overridden in subclasses (like STD_union). Pre-
and post-creation actions can be customized on a per-class instance by
overriding the L{_PreFactory_vx} and L{_postFactory_vx} methods.
@keyword _dom_node: If provided, the value must be a DOM node, the
content of which will be used to set the value of the instance.
@keyword _apply_whitespace_facet: If C{True} and this is a
simpleTypeDefinition with a whiteSpace facet, the first argument will
be normalized in accordance with that facet prior to invoking the
parent constructor.
@keyword _validate_constraints: If C{True}, any constructed value is
checked against constraints applied to the union as well as the member
type.
@keyword _require_value: If C{False} (default), it is permitted to
create a value without an initial value. If C{True} and no initial
value was provided, causes L{pyxb.MissingContentError} to be raised.
Only applies to simpleTypeDefinition instances; this is used when
creating values from DOM nodes.
Data descriptors inherited from pyxb.utils.utility._DeconflictSymbols_mixin:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |