Package pyxb :: Package namespace :: Class _ComponentDependency_mixin
[hide private]
[frames] | no frames]

Class _ComponentDependency_mixin

source code

                      object --+        
                               |        
                         cscRoot --+    
                                   |    
utils.utility.PrivateTransient_mixin --+
                                       |
                          object --+   |
                                   |   |
                             cscRoot --+
                                       |
                                      _ComponentDependency_mixin
Known Subclasses:

Mix-in for components that can depend on other components.

Instance Methods [hide private]
None
_resetClone_csc(self, **kw)
CSC extension to reset fields of a component.
source code
set(pyxb.xmlschema.structures._SchemaComponent_mixin)
bindingRequires(self, reset=False, include_lax=False)
Return a set of components upon whose bindings this component's bindings depend.
source code
frozenset
_bindingRequires_vx(self, include_lax)
Placeholder for subclass method that identifies the necessary components.
source code

Inherited from utils.utility.PrivateTransient_mixin: __getstate__

Inherited from cscRoot: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __PrivateTransient = set()
  __bindingRequires = None
hash(x)
  _ComponentDependency_mixin__PrivateTransient = set(['bindingRe...
  _ComponentDependency_mixin__bindingRequires = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_resetClone_csc(self, **kw)

source code 

CSC extension to reset fields of a component. This one clears dependency-related data, since the clone will have to revise its dependencies.

Returns: None

bindingRequires(self, reset=False, include_lax=False)

source code 

Return a set of components upon whose bindings this component's bindings depend.

For example, bindings that are extensions or restrictions depend on their base types. Complex type definition bindings require that the types of their attribute declarations be available at the class definition, and the types of their element declarations in the postscript.

Parameters:
  • include_lax - if False (default), only the requirements of the class itself are returned. If True, all requirements are returned.
Returns: set(pyxb.xmlschema.structures._SchemaComponent_mixin)

_bindingRequires_vx(self, include_lax)

source code 

Placeholder for subclass method that identifies the necessary components.

Returns: frozenset
The component instances on which this component depends
Raises:
  • LogicError - A subclass failed to implement this method

Note: Override in subclasses.


Class Variable Details [hide private]

_ComponentDependency_mixin__PrivateTransient

Value:
set(['bindingRequires'])