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-2012, 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  import sys 
33   
34  # Unique identifier for bindings created at the same time 
35  _GenerationUID = pyxb.namespace.builtin.BuiltInObjectUID 
36   
37  # Import bindings for namespaces imported into schema 
38   
39  Namespace = pyxb.namespace.NamespaceForURI('http://www.w3.org/XML/1998/namespace', create_if_missing=True) 
40  ModuleRecord = Namespace.lookupModuleRecordByUID(_GenerationUID, create_if_missing=True) 
41  ModuleRecord._setModule(sys.modules[__name__]) 
42   
43  # Atomic SimpleTypeDefinition 
44 -class STD_ANON_space (pyxb.binding.datatypes.NCName, pyxb.binding.basis.enumeration_mixin):
45 """No information""" 46 47 _ExpandedName = None
48 STD_ANON_space._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_space, enum_prefix=None) 49 STD_ANON_space.default = STD_ANON_space._CF_enumeration.addEnumeration(unicode_value=u'default') 50 STD_ANON_space.preserve = STD_ANON_space._CF_enumeration.addEnumeration(unicode_value=u'preserve') 51 STD_ANON_space._InitializeFacetMap(STD_ANON_space._CF_enumeration) 52 53 # Atomic SimpleTypeDefinition
54 -class STD_ANON_emptyString (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin):
55 """No information""" 56 57 _ExpandedName = None
58 STD_ANON_emptyString._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_emptyString, enum_prefix=None) 59 STD_ANON_emptyString.emptyString = STD_ANON_emptyString._CF_enumeration.addEnumeration(unicode_value=u'') 60 STD_ANON_emptyString._InitializeFacetMap(STD_ANON_emptyString._CF_enumeration) 61 62 # Union SimpleTypeDefinition 63 # superclasses pyxb.binding.datatypes.anySimpleType
64 -class STD_ANON_lang (pyxb.binding.basis.STD_union):
65 """Simple type that is a union of pyxb.binding.datatypes.language, STD_ANON_emptyString""" 66 67 _ExpandedName = None 68 _MemberTypes = ( pyxb.binding.datatypes.language, STD_ANON_emptyString, )
69 STD_ANON_lang._CF_enumeration = pyxb.binding.facets.CF_enumeration(value_datatype=STD_ANON_lang) 70 STD_ANON_lang._CF_pattern = pyxb.binding.facets.CF_pattern() 71 STD_ANON_lang._InitializeFacetMap(STD_ANON_lang._CF_enumeration, 72 STD_ANON_lang._CF_pattern) 73