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

Source Code for Module pyxb.binding.xml_

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