Public Member Functions | Static Public Attributes

SchemaInstanceType Class Reference

Public Member Functions

def __new__
def getTypeDefinition
def getElementDeclaration
def __new__
def getTypeDefinition
def getElementDeclaration

Static Public Attributes

dictionary types = {}
dictionary elements = {}
dictionary element_typecode_cache = {}
tuple getTypeDefinition = classmethod(getTypeDefinition)
tuple getElementDeclaration = classmethod(getElementDeclaration)

Detailed Description

Register all types/elements, when hit already defined 
class dont create a new one just give back reference.  Thus 
import order determines which class is loaded.

class variables:
    types -- dict of typecode classes definitions 
        representing global type definitions.
    elements -- dict of typecode classes representing 
        global element declarations.
    element_typecode_cache -- dict of typecode instances 
        representing global element declarations.

Definition at line 88 of file schema.py.


Member Function Documentation

def __new__ (   cls,
  classname,
  bases,
  classdict 
)
If classdict has literal and schema register it as a
element declaration, else if has type and schema register
it as a type definition.

Definition at line 106 of file schema.py.

def __new__ (   cls,
  classname,
  bases,
  classdict 
)
If classdict has literal and schema register it as a
element declaration, else if has type and schema register
it as a type definition.

Definition at line 106 of file schema.py.

def getElementDeclaration (   cls,
  namespaceURI,
  name,
  isref = False,
  lazy = False 
)
Grab an element declaration, returns a typecode instance
representation or a typecode class definition.  An element 
reference has its own facets, and is local so it will not be
cached.

Parameters:
    namespaceURI -- 
    name -- 
    isref -- if element reference, return class definition.

Definition at line 164 of file schema.py.

def getElementDeclaration (   cls,
  namespaceURI,
  name,
  isref = False,
  lazy = False 
)
Grab an element declaration, returns a typecode instance
representation or a typecode class definition.  An element 
reference has its own facets, and is local so it will not be
cached.

Parameters:
    namespaceURI -- 
    name -- 
    isref -- if element reference, return class definition.

Definition at line 164 of file schema.py.

def getTypeDefinition (   cls,
  namespaceURI,
  name,
  lazy = False 
)
Grab a type definition, returns a typecode class definition
because the facets (name, minOccurs, maxOccurs) must be provided.
 
Parameters:
   namespaceURI -- 
   name -- 

Definition at line 150 of file schema.py.

def getTypeDefinition (   cls,
  namespaceURI,
  name,
  lazy = False 
)
Grab a type definition, returns a typecode class definition
because the facets (name, minOccurs, maxOccurs) must be provided.
 
Parameters:
   namespaceURI -- 
   name -- 

Definition at line 150 of file schema.py.


The documentation for this class was generated from the following files: