| | |
- ZSI.TC.TypeCode
-
- Array
- ComplexType
-
- Struct
class Array(ZSI.TC.TypeCode) |
| |
An array.
atype -- arrayType, (namespace,ncname)
mutable -- object could change between multiple serializations
undeclared -- do not serialize/parse arrayType attribute. |
| |
Methods defined here:
- __init__(self, atype, ofwhat, pname=None, dimensions=1, fill=None, sparse=False, mutable=False, size=None, nooffset=0, undeclared=False, childnames=None, **kw)
- parse(self, elt, ps)
- parse_offset(self, elt, ps)
- parse_position(self, elt, ps)
- serialize(self, elt, sw, pyobj, name=None, childnames=None, **kw)
Data and other attributes defined here:
- logger = <ZSI.wstools.logging.BasicLogger instance>
Methods inherited from ZSI.TC.TypeCode:
- SimpleHREF(self, elt, ps, tag)
- Simple HREF for non-string and non-struct and non-array.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
tag --
- checkname(self, elt, ps)
- See if the name and type of the "elt" element is what we're
looking for. Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- checktype(self, elt, ps)
- See if the type of the "elt" element is what we're looking for.
Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- get_name(self, name, objid)
- Paramters:
name -- element tag
objid -- ID type, unique id
- get_parse_and_errorlist(self)
- Get the parselist and human-readable version, errorlist is returned,
because it is used in error messages.
- has_attributes(self)
- Return True if Attributes are declared outside
the scope of SOAP ('root', 'id', 'href'), and some
attributes automatically handled (xmlns, xsi:type).
- name_match(self, elt)
- Simple boolean test to see if we match the element name.
Parameters:
elt -- the DOM element being parsed
- nilled(self, elt, ps)
- Is the element NIL, and is that okay?
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- parse_attributes(self, elt, ps)
- find all attributes specified in the attribute_typecode_dict in
current element tag, if an attribute is found set it in the
self.attributes dictionary. Default to putting in String.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- serialize_as_nil(self, elt)
- Parameters:
elt -- the current DOMWrapper element
- set_attribute_href(self, el, objid)
- set href attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_id(self, el, objid)
- set id attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_xsi_type(self, el, **kw)
- if typed, set the xsi:type attribute
Paramters:
el -- MessageInterface representing the element
- set_attributes(self, el, pyobj)
- Instance data attributes contains a dictionary
of keys (namespaceURI,localName) and attribute values.
These values can be self-describing (typecode), or use
attribute_typecode_dict to determine serialization.
Paramters:
el -- MessageInterface representing the element
pyobj --
- simple_value(self, elt, ps, mixed=False)
- Get the value of the simple content of this element.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
mixed -- ignore element content, optional text node
- text_to_data(self, text, elt, ps)
- convert text into typecode specific data.
Parameters:
text -- text content
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
Data and other attributes inherited from ZSI.TC.TypeCode:
- attribute_typecode_dict = None
- tag = None
- type = (None, None)
- typechecks = True
|
class ComplexType(ZSI.TC.TypeCode) |
| |
Represents an element of complexType, potentially containing other
elements. |
| |
Methods defined here:
- __init__(self, pyclass, ofwhat, pname=None, inorder=False, inline=False, mutable=True, mixed=False, mixed_aname='_text', **kw)
- pyclass -- the Python class to hold the fields
ofwhat -- a list of fields to be in the complexType
inorder -- fields must be in exact order or not
inline -- don't href/id when serializing
mutable -- object could change between multiple serializations
type -- the (URI,localname) of the datatype
mixed -- mixed content model? True/False
mixed_aname -- if mixed is True, specify text content here. Default _text
- cb(self, elt, sw, pyobj, name=None, **kw)
- parse(self, elt, ps)
- serialize(self, elt, sw, pyobj, inline=False, name=None, **kw)
- setDerivedTypeContents(self, extensions=None, restrictions=None)
- For derived types set appropriate parameter and
Data and other attributes defined here:
- logger = <ZSI.wstools.logging.BasicLogger instance>
Methods inherited from ZSI.TC.TypeCode:
- SimpleHREF(self, elt, ps, tag)
- Simple HREF for non-string and non-struct and non-array.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
tag --
- checkname(self, elt, ps)
- See if the name and type of the "elt" element is what we're
looking for. Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- checktype(self, elt, ps)
- See if the type of the "elt" element is what we're looking for.
Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- get_name(self, name, objid)
- Paramters:
name -- element tag
objid -- ID type, unique id
- get_parse_and_errorlist(self)
- Get the parselist and human-readable version, errorlist is returned,
because it is used in error messages.
- has_attributes(self)
- Return True if Attributes are declared outside
the scope of SOAP ('root', 'id', 'href'), and some
attributes automatically handled (xmlns, xsi:type).
- name_match(self, elt)
- Simple boolean test to see if we match the element name.
Parameters:
elt -- the DOM element being parsed
- nilled(self, elt, ps)
- Is the element NIL, and is that okay?
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- parse_attributes(self, elt, ps)
- find all attributes specified in the attribute_typecode_dict in
current element tag, if an attribute is found set it in the
self.attributes dictionary. Default to putting in String.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- serialize_as_nil(self, elt)
- Parameters:
elt -- the current DOMWrapper element
- set_attribute_href(self, el, objid)
- set href attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_id(self, el, objid)
- set id attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_xsi_type(self, el, **kw)
- if typed, set the xsi:type attribute
Paramters:
el -- MessageInterface representing the element
- set_attributes(self, el, pyobj)
- Instance data attributes contains a dictionary
of keys (namespaceURI,localName) and attribute values.
These values can be self-describing (typecode), or use
attribute_typecode_dict to determine serialization.
Paramters:
el -- MessageInterface representing the element
pyobj --
- simple_value(self, elt, ps, mixed=False)
- Get the value of the simple content of this element.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
mixed -- ignore element content, optional text node
- text_to_data(self, text, elt, ps)
- convert text into typecode specific data.
Parameters:
text -- text content
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
Data and other attributes inherited from ZSI.TC.TypeCode:
- attribute_typecode_dict = None
- tag = None
- type = (None, None)
- typechecks = True
|
class Struct(ComplexType) |
| |
Struct is a complex type for accessors identified by name.
Constraint: No element may have the same name as any other,
nor may any element have a maxOccurs > 1.
<xs:group name="Struct" >
<xs:sequence>
<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
</xs:group>
<xs:complexType name="Struct" >
<xs:group ref="tns:Struct" minOccurs="0" />
<xs:attributeGroup ref="tns:commonAttributes"/>
</xs:complexType> |
| |
- Method resolution order:
- Struct
- ComplexType
- ZSI.TC.TypeCode
Methods defined here:
- __init__(self, pyclass, ofwhat, pname=None, inorder=False, inline=False, mutable=True, **kw)
- pyclass -- the Python class to hold the fields
ofwhat -- a list of fields to be in the struct
inorder -- fields must be in exact order or not
inline -- don't href/id when serializing
mutable -- object could change between multiple serializations
Data and other attributes defined here:
- logger = <ZSI.wstools.logging.BasicLogger instance>
Methods inherited from ComplexType:
- cb(self, elt, sw, pyobj, name=None, **kw)
- parse(self, elt, ps)
- serialize(self, elt, sw, pyobj, inline=False, name=None, **kw)
- setDerivedTypeContents(self, extensions=None, restrictions=None)
- For derived types set appropriate parameter and
Methods inherited from ZSI.TC.TypeCode:
- SimpleHREF(self, elt, ps, tag)
- Simple HREF for non-string and non-struct and non-array.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
tag --
- checkname(self, elt, ps)
- See if the name and type of the "elt" element is what we're
looking for. Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- checktype(self, elt, ps)
- See if the type of the "elt" element is what we're looking for.
Return the element's type.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- get_name(self, name, objid)
- Paramters:
name -- element tag
objid -- ID type, unique id
- get_parse_and_errorlist(self)
- Get the parselist and human-readable version, errorlist is returned,
because it is used in error messages.
- has_attributes(self)
- Return True if Attributes are declared outside
the scope of SOAP ('root', 'id', 'href'), and some
attributes automatically handled (xmlns, xsi:type).
- name_match(self, elt)
- Simple boolean test to see if we match the element name.
Parameters:
elt -- the DOM element being parsed
- nilled(self, elt, ps)
- Is the element NIL, and is that okay?
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- parse_attributes(self, elt, ps)
- find all attributes specified in the attribute_typecode_dict in
current element tag, if an attribute is found set it in the
self.attributes dictionary. Default to putting in String.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
- serialize_as_nil(self, elt)
- Parameters:
elt -- the current DOMWrapper element
- set_attribute_href(self, el, objid)
- set href attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_id(self, el, objid)
- set id attribute
Paramters:
el -- MessageInterface representing the element
objid -- ID type, unique id
- set_attribute_xsi_type(self, el, **kw)
- if typed, set the xsi:type attribute
Paramters:
el -- MessageInterface representing the element
- set_attributes(self, el, pyobj)
- Instance data attributes contains a dictionary
of keys (namespaceURI,localName) and attribute values.
These values can be self-describing (typecode), or use
attribute_typecode_dict to determine serialization.
Paramters:
el -- MessageInterface representing the element
pyobj --
- simple_value(self, elt, ps, mixed=False)
- Get the value of the simple content of this element.
Parameters:
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
mixed -- ignore element content, optional text node
- text_to_data(self, text, elt, ps)
- convert text into typecode specific data.
Parameters:
text -- text content
elt -- the DOM element being parsed
ps -- the ParsedSoap object.
Data and other attributes inherited from ZSI.TC.TypeCode:
- attribute_typecode_dict = None
- tag = None
- type = (None, None)
- typechecks = True
| |