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

Class 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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
matches(self, instance, value)
Return True iff the value is a valid match against this wildcard.
source code

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

Class Variables [hide private]
  NC_any = '##any'
  NC_not = '##other'
  NC_targetNamespace = '##targetNamespace'
  NC_local = '##local'
  __namespaceConstraint = None
hash(x)
  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.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

namespaceConstraint(self)

source code 

A constraint on the namespace for the wildcard.

Valid values are:

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 

x.__init__(...) initializes x; see help(type(x)) for signature

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.