Package pyxb :: Package binding :: Module content :: Class Wildcard |
[hide private]
[frames] | no frames]

# type Wildcard

source code

    object --+
             |
            Wildcard

Placeholder for wildcard objects.

Instance Methods | [hide private]
namespaceConstraint(self) A constraint on the namespace for the wildcard. | source code
processContents(self) Indicate how this wildcard's contents should be processed. | source code
__normalizeNamespace(self, nsv) | source code
__init__(self, *args, **kw) | source code
matches(self, instance, value) Return True iff the value is a valid match against this wildcard. | source code

Class Variables | [hide private]
| NC_any = ``'``##any``'``
| NC_not = ``'``##other``'``
| NC_targetNamespace = ``'``##targetNamespace``'``
| NC_local = ``'``##local``'``
| __namespaceConstraint = `None`
| PC_skip = ``'``skip``'`` No namespace constraint is applied to the wildcard.
| PC_lax = ``'``lax``'`` Validate against available uniquely determined declaration.
| PC_strict = ``'``strict``'`` Validate against declaration or xsi:type, which must be available.
| __processContents = `None` One of PC_skip, PC_lax, PC_strict.

Method Details | [hide private]

### namespaceConstraint(self) | source code
A constraint on the namespace for the wildcard. Valid values are: Wildcard.NC_any A tuple ( Wildcard.NC_not, a namespace instance ) set(of namespace instances) Namespaces are represented by their URIs. Absence is represented by `None`, both in the "not" pair and in the set.

### __init__(self, *args, **kw) (Constructor) | source code
Parameters: `namespace_constraint` - Required namespace constraint(s) `process_contents` - Required Overrides: object.__init__

### matches(self, instance, value) | source code
Return True iff the value is a valid match against this wildcard. Validation per Wildcard allows Namespace Name.