Package pyxb :: Package binding :: Module xml_ |
[hide private]
[frames] | no frames]

# Source Code for Module pyxb.binding.xml_

     1  # -*- coding: utf-8 -*-
     2  # Copyright 2009-2013, Peter A. Bigot
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License"); you may
     5  # not use this file except in compliance with the License. You may obtain a
     6  # copy of the License at:
     7  #
     8  #            http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    12  # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    13  # License for the specific language governing permissions and limitations
    14  # under the License.
    15
    16  """Binding classes for types referenced by the attribute and attribute
    17  group declarations in the XML namespace
    18  (http://www.w3.org/XML/1998/namespace).
    19
    20  The content of this module was generated by PyXB and is coupled to the
    21  components defined in L{pyxb.namespace.builtin._XML}.
    22
    23  """
    24
    25  # ./pyxb/standard/bindings/raw/xml_.py
    26  # PyXB bindings for NamespaceModule
    27  # Generated 2009-07-25 13:37:53.257717 by PyXB version 0.5.2
    28  import pyxb
    29  import pyxb.binding
    30  import pyxb.utils.utility
    31  import pyxb.utils.domutils
    32
    33  # Unique identifier for bindings created at the same time
    34  _GenerationUID = pyxb.namespace.builtin.BuiltInObjectUID
    35
    36  # Import bindings for namespaces imported into schema
    37
    38  Namespace = pyxb.namespace.NamespaceForURI('http://www.w3.org/XML/1998/namespace', create_if_missing=True)
    39
    40  # Atomic SimpleTypeDefinition
    41 -class STD_ANON_space (pyxb.binding.datatypes.NCName, pyxb.binding.basis.enumeration_mixin):
    42      """No information"""
    43
    44      _ExpandedName = None
    45  STD_ANON_space._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_space, enum_prefix=None)
    46  STD_ANON_space.default = STD_ANON_space._CF_enumeration.addEnumeration(unicode_value=u'default')
    47  STD_ANON_space.preserve = STD_ANON_space._CF_enumeration.addEnumeration(unicode_value=u'preserve')
    48  STD_ANON_space._InitializeFacetMap(STD_ANON_space._CF_enumeration)
    49
    50  # Atomic SimpleTypeDefinition
    51 -class STD_ANON_emptyString (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):
    52      """No information"""
    53
    54      _ExpandedName = None
    55  STD_ANON_emptyString._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_emptyString, enum_prefix=None)
    56  STD_ANON_emptyString.emptyString = STD_ANON_emptyString._CF_enumeration.addEnumeration(unicode_value=u'')
    57  STD_ANON_emptyString._InitializeFacetMap(STD_ANON_emptyString._CF_enumeration)
    58
    59  # Union SimpleTypeDefinition
    60  # superclasses pyxb.binding.datatypes.anySimpleType
    61 -class STD_ANON_lang (pyxb.binding.basis.STD_union):
    62      """Simple type that is a union of pyxb.binding.datatypes.language, STD_ANON_emptyString"""
    63
    64      _ExpandedName = None
    65      _MemberTypes = ( pyxb.binding.datatypes.language, STD_ANON_emptyString, )
    66  STD_ANON_lang._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_lang)
    67  STD_ANON_lang._CF_pattern = pyxb.binding.facets.CF_pattern()
    68  STD_ANON_lang._InitializeFacetMap(STD_ANON_lang._CF_enumeration,
    69     STD_ANON_lang._CF_pattern)
    70