| | |
- __builtin__.object
-
- ElementDeclaration
- LocalElementDeclaration
- TypeDefinition
- __builtin__.type(__builtin__.object)
-
- SchemaInstanceType
class ElementDeclaration(__builtin__.object) |
| |
Typecodes subclass to represent a Global Element Declaration by
setting class variables schema and literal.
schema = namespaceURI
literal = NCName
substitutionGroup -- GED reference of form, (namespaceURI,NCName) |
| |
Methods defined here:
- checkSubstitute(self, typecode)
- If this is True, allow typecode to be substituted
for "self" typecode.
- getSubstitutionElement(self, elt, ps)
- if elt matches a member of the head substitutionGroup, return
the GED typecode representation of the member.
head -- ElementDeclaration typecode,
elt -- the DOM element being parsed
ps -- ParsedSoap instance
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __metaclass__ = <class 'schema.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.
- __weakref__ = <attribute '__weakref__' of 'ElementDeclaration' objects>
- list of weak references to the object (if defined)
|
class LocalElementDeclaration(__builtin__.object) |
| |
Typecodes subclass to represent a Local Element Declaration. |
| |
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __metaclass__ = <class 'schema.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.
- __weakref__ = <attribute '__weakref__' of 'LocalElementDeclaration' objects>
- list of weak references to the object (if defined)
|
class SchemaInstanceType(__builtin__.type) |
| |
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. |
| |
- Method resolution order:
- SchemaInstanceType
- __builtin__.type
- __builtin__.object
Class methods defined here:
- getElementDeclaration(cls, namespaceURI, name, isref=False, lazy=False) from __builtin__.type
- 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.
- getTypeDefinition(cls, namespaceURI, name, lazy=False) from __builtin__.type
- Grab a type definition, returns a typecode class definition
because the facets (name, minOccurs, maxOccurs) must be provided.
Parameters:
namespaceURI --
name --
Static methods defined here:
- __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.
Data and other attributes defined here:
- element_typecode_cache = {}
- elements = {}
- types = {}
Methods inherited from __builtin__.type:
- __call__(...)
- x.__call__(...) <==> x(...)
- __cmp__(...)
- x.__cmp__(y) <==> cmp(x,y)
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __hash__(...)
- x.__hash__() <==> hash(x)
- __repr__(...)
- x.__repr__() <==> repr(x)
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __subclasses__(...)
- __subclasses__() -> list of immediate subclasses
- mro(...)
- mro() -> list
return a type's method resolution order
Data and other attributes inherited from __builtin__.type:
- __base__ = <type 'type'>
- __bases__ = (<type 'type'>,)
- __basicsize__ = 420
- __dict__ = <dictproxy object>
- __dictoffset__ = 132
- __flags__ = 22523
- __itemsize__ = 20
- __mro__ = (<class 'schema.SchemaInstanceType'>, <type 'type'>, <type 'object'>)
- __weakrefoffset__ = 184
|
class TypeDefinition(__builtin__.object) |
| |
Typecodes subclass to represent a Global Type Definition by
setting class variable type.
type = (namespaceURI, NCName) |
| |
Methods defined here:
- getSubstituteType(self, elt, ps)
- if xsi:type does not match the instance type attr,
check to see if it is a derived type substitution.
DONT Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __metaclass__ = <class 'schema.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.
- __weakref__ = <attribute '__weakref__' of 'TypeDefinition' objects>
- list of weak references to the object (if defined)
| |