ZSI :: schema :: SchemaInstanceType :: Class SchemaInstanceType
[hide private]
[frames] | no frames]

Type SchemaInstanceType



object --+    
         |    
      type --+
             |
            SchemaInstanceType

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.



Instance Methods [hide private]

Inherited from type: __call__, __cmp__, __delattr__, __getattribute__, __hash__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __init__, __reduce__, __reduce_ex__, __str__

Class Methods [hide private]
 
getTypeDefinition(cls, namespaceURI, name, lazy=False)
Grab a type definition, returns a typecode class definition because the facets (name, minOccurs, maxOccurs) must be provided.
 
getElementDeclaration(cls, namespaceURI, name, isref=False, lazy=False)
Grab an element declaration, returns a typecode instance representation or a typecode class definition.
Static Methods [hide private]
 
__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.
Class Variables [hide private]
  types = {('http://www.sugarcrm.com/sugarcrm', 'contact_detail'...
  elements = {('http://www.zolera.com/schemas/ZSI/', 'ActorFault...
  element_typecode_cache = {}
Properties [hide private]

Inherited from type: __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__new__(cls, classname, bases, classdict)
Static Method

 
If classdict has literal and schema register it as a element declaration, else if has type and schema register it as a type definition.
Returns:
a new object with type S, a subtype of T

Overrides: type.__new__

getTypeDefinition(cls, namespaceURI, name, lazy=False)
Class Method

 
Grab a type definition, returns a typecode class definition
because the facets (name, minOccurs, maxOccurs) must be provided.

Parameters:
   namespaceURI -- 
   name -- 

getElementDeclaration(cls, namespaceURI, name, isref=False, lazy=False)
Class Method

 
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.


Class Variable Details [hide private]

types

Value:
{('http://www.sugarcrm.com/sugarcrm', 'contact_detail'): <class 'etl.c\
onnector.sugarcrm.sugarsoap_services_types.contact_detail_Def'>,
 ('http://www.sugarcrm.com/sugarcrm', 'contact_detail_array'): <class \
'etl.connector.sugarcrm.sugarsoap_services_types.contact_detail_array_\
Def'>,
 ('http://www.sugarcrm.com/sugarcrm', 'document_revision'): <class 'et\
l.connector.sugarcrm.sugarsoap_services_types.document_revision_Def'>,
 ('http://www.sugarcrm.com/sugarcrm', 'entry_list'): <class 'etl.conne\
...

elements

Value:
{('http://www.zolera.com/schemas/ZSI/', 'ActorFaultDetail'): <class 'Z\
SI.fault.ActorFaultDetailTypeCode'>,
 ('http://www.zolera.com/schemas/ZSI/', 'FaultDetail'): <class 'ZSI.fa\
ult.ZSIFaultDetailTypeCode'>,
 ('http://www.zolera.com/schemas/ZSI/', 'URIFaultDetail'): <class 'ZSI\
.fault.URIFaultDetailTypeCode'>}