1# ./pyxb/bundles/wssplat/raw/sawsdl.py
2# -*- coding: utf-8 -*-
3# PyXB bindings for NM:070b3b59f767ac4d0f19e851fc2c1f39e654364d
4# Generated 2017-09-03 06:16:49.734741 by PyXB version 1.2.6 using Python 2.7.12.final.0
5# Namespace http://www.w3.org/ns/sawsdl
6
7from __future__ import unicode_literals
8import pyxb
9import pyxb.binding
10import pyxb.binding.saxer
11import io
12import pyxb.utils.utility
13import pyxb.utils.domutils
14import sys
15import pyxb.utils.six as _six
16# Unique identifier for bindings created at the same time
17_GenerationUID = pyxb.utils.utility.UniqueIdentifier('urn:uuid:616f95f4-9099-11e7-b77e-3497f68b2e96')
18
19# Version of PyXB used to generate the bindings
20_PyXBVersion = '1.2.6'
21# Generated bindings are not compatible across PyXB versions
22if pyxb.__version__ != _PyXBVersion:
23    raise pyxb.PyXBVersionError(_PyXBVersion)
24
25# A holder for module-level binding classes so we can access them from
26# inside class definitions where property names may conflict.
27_module_typeBindings = pyxb.utils.utility.Object()
28
29# Import bindings for namespaces imported into schema
30import pyxb.binding.datatypes
31
32# NOTE: All namespace declarations are reserved within the binding
33Namespace = pyxb.namespace.NamespaceForURI('http://www.w3.org/ns/sawsdl', create_if_missing=True)
34Namespace.configureCategories(['typeBinding', 'elementBinding'])
35
36def CreateFromDocument (xml_text, default_namespace=None, location_base=None):
37    """Parse the given XML and use the document element to create a
38    Python instance.
39
40    @param xml_text An XML document.  This should be data (Python 2
41    str or Python 3 bytes), or a text (Python 2 unicode or Python 3
42    str) in the L{pyxb._InputEncoding} encoding.
43
44    @keyword default_namespace The L{pyxb.Namespace} instance to use as the
45    default namespace where there is no default namespace in scope.
46    If unspecified or C{None}, the namespace of the module containing
47    this function will be used.
48
49    @keyword location_base: An object to be recorded as the base of all
50    L{pyxb.utils.utility.Location} instances associated with events and
51    objects handled by the parser.  You might pass the URI from which
52    the document was obtained.
53    """
54
55    if pyxb.XMLStyle_saxer != pyxb._XMLStyle:
56        dom = pyxb.utils.domutils.StringToDOM(xml_text)
57        return CreateFromDOM(dom.documentElement, default_namespace=default_namespace)
58    if default_namespace is None:
59        default_namespace = Namespace.fallbackNamespace()
60    saxer = pyxb.binding.saxer.make_parser(fallback_namespace=default_namespace, location_base=location_base)
61    handler = saxer.getContentHandler()
62    xmld = xml_text
63    if isinstance(xmld, _six.text_type):
64        xmld = xmld.encode(pyxb._InputEncoding)
65    saxer.parse(io.BytesIO(xmld))
66    instance = handler.rootObject()
67    return instance
68
69def CreateFromDOM (node, default_namespace=None):
70    """Create a Python instance from the given DOM node.
71    The node tag must correspond to an element declaration in this module.
72
73    @deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}."""
74    if default_namespace is None:
75        default_namespace = Namespace.fallbackNamespace()
76    return pyxb.binding.basis.element.AnyCreateFromDOM(node, default_namespace)
77
78
79# List simple type: {http://www.w3.org/ns/sawsdl}listOfAnyURI
80# superclasses pyxb.binding.datatypes.anySimpleType
81class listOfAnyURI (pyxb.binding.basis.STD_list):
82
83    """Simple type that is a list of pyxb.binding.datatypes.anyURI."""
84
85    _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'listOfAnyURI')
86    _XSDLocation = pyxb.utils.utility.Location('/tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsd', 8, 2)
87    _Documentation = None
88
89    _ItemType = pyxb.binding.datatypes.anyURI
90listOfAnyURI._InitializeFacetMap()
91Namespace.addCategoryObject('typeBinding', 'listOfAnyURI', listOfAnyURI)
92_module_typeBindings.listOfAnyURI = listOfAnyURI
93
94# Complex type [anonymous] with content type EMPTY
95class CTD_ANON (pyxb.binding.basis.complexTypeDefinition):
96    """This element is for use in WSDL 1.1 only. It does not apply to WSDL 2.0 documents.  Use in
97        WSDL 2.0 documents is invalid."""
98    _TypeDefinition = None
99    _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY
100    _Abstract = False
101    _ExpandedName = None
102    _XSDLocation = pyxb.utils.utility.Location('/tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsd', 17, 4)
103    _ElementMap = {}
104    _AttributeMap = {}
105    # Base type is pyxb.binding.datatypes.anyType
106    _AttributeWildcard = pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=pyxb.binding.content.Wildcard.NC_any)
107    _ElementMap.update({
108
109    })
110    _AttributeMap.update({
111
112    })
113_module_typeBindings.CTD_ANON = CTD_ANON
114
115
116attrExtensions = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'attrExtensions'), CTD_ANON, location=pyxb.utils.utility.Location('/tmp/pyxbdist.WUiBAra/PyXB-1.2.6/pyxb/bundles/wssplat/schemas/sawsdl.xsd', 16, 2))
117Namespace.addCategoryObject('elementBinding', attrExtensions.name().localName(), attrExtensions)
118