schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes module¶
This module contains XSD types classes for xsdtypes package
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
is_datetime
(date_string, date_format='%Y-%m-%d')¶ Check if the string represents a valid datetime according to the specified formatting.
Parameters: - date_string – The string containing the datetime
- date_format – The reference formatting for datetime
Returns: True if the string is a valid datetime, False if not.
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDType
(name, python_type, validators=None, to_python=None, from_python=<class 'str'>)¶ Bases:
object
Base class for representing generic XSD types. Use this class for create XSD built-in types.
An instance contains a Python’s type transformation ana a list of validator functions.
Use Python’s types conversion:
Decoding from XML: python_type(value) Encoding to XML: str(value)-
__init__
(name, python_type, validators=None, to_python=None, from_python=<class 'str'>)¶ Parameters: - python_type – The correspondent Python’s type
- validators – The optional validator for value objects
- to_python – The optional decode function
- from_python – The optional encode function
-
is_list
()¶
-
validate
(value)¶ Validator for decoded values. :param value: The Python’s object that has to be validated
-
decode
(text)¶ Transform an XML text into a Python object. :param text: XML text
-
encode
(obj)¶ Transform a Python object into an XML string. :param obj: The Python object that has to be encoded in XML
-
basename
()¶ Get the name of the type without prefix or namespace URI.
-
get_rank
()¶ The rank of the XSDType-only instance (an XSD builtin type) is always 0.
-
get_lengths
(only_lists=True)¶
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__doc__': "\n Base class for representing generic XSD types. Use this class\n for create XSD built-in types.\n\n An instance contains a Python's type transformation ana a list\n of validator functions.\n\n Use Python's types conversion:\n\n Decoding from XML: python_type(value)\n Encoding to XML: str(value)\n ", '__init__': <function XSDType.__init__>, 'is_list': <function XSDType.is_list>, 'validate': <function XSDType.validate>, 'decode': <function XSDType.decode>, 'encode': <function XSDType.encode>, 'basename': <function XSDType.basename>, 'get_rank': <function XSDType.get_rank>, 'get_lengths': <function XSDType.get_lengths>, '__dict__': <attribute '__dict__' of 'XSDType' objects>, '__weakref__': <attribute '__weakref__' of 'XSDType' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDSimpleType
(base_type, elem, name=None, is_list=False, length=None, validators=None, enumeration=None)¶ Bases:
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType
A class for represent XSD schema simple type.
-
__init__
(base_type, elem, name=None, is_list=False, length=None, validators=None, enumeration=None)¶ Parameters: - python_type – The correspondent Python’s type
- validators – The optional validator for value objects
- to_python – The optional decode function
- from_python – The optional encode function
-
is_list
()¶
-
validate
(value)¶ Validator for decoded values. :param value: The Python’s object that has to be validated
-
decode
(text)¶ Transform an XML text into a Python object. :param text: XML text
-
encode
(obj)¶ Transform a Python object into an XML string. :param obj: The Python object that has to be encoded in XML
-
get_rank
()¶ Compute the pseudo-dimension of the XSDSimpleType, considering the dimension of the base type.
Returns: int
-
get_lengths
(only_lists=True)¶ Get the lengths defined for the XSD type.
Parameters: only_lists – Include lengths defined for other types. Returns: a list with defined lengths
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__doc__': '\n A class for represent XSD schema simple type.\n ', '__init__': <function XSDSimpleType.__init__>, 'is_list': <function XSDSimpleType.is_list>, 'validate': <function XSDSimpleType.validate>, 'decode': <function XSDSimpleType.decode>, 'encode': <function XSDSimpleType.encode>, 'get_rank': <function XSDSimpleType.get_rank>, 'get_lengths': <function XSDSimpleType.get_lengths>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
basename
()¶ Get the name of the type without prefix or namespace URI.
-
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDComplexType
(base_type, elem, name=None, is_list=False, validators=None, enumeration=None, content_model=None, attributes=None)¶ Bases:
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDSimpleType
A class for represent XSD schema simple type.
-
__init__
(base_type, elem, name=None, is_list=False, validators=None, enumeration=None, content_model=None, attributes=None)¶ Parameters: - python_type – The correspondent Python’s type
- validators – The optional validator for value objects
- to_python – The optional decode function
- from_python – The optional encode function
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__doc__': '\n A class for represent XSD schema simple type.\n ', '__init__': <function XSDComplexType.__init__>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
basename
()¶ Get the name of the type without prefix or namespace URI.
-
decode
(text)¶ Transform an XML text into a Python object. :param text: XML text
-
encode
(obj)¶ Transform a Python object into an XML string. :param obj: The Python object that has to be encoded in XML
-
get_lengths
(only_lists=True)¶ Get the lengths defined for the XSD type.
Parameters: only_lists – Include lengths defined for other types. Returns: a list with defined lengths
-
get_rank
()¶ Compute the pseudo-dimension of the XSDSimpleType, considering the dimension of the base type.
Returns: int
-
is_list
()¶
-
validate
(value)¶ Validator for decoded values. :param value: The Python’s object that has to be validated
-
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDElement
(name, path, xsd_type, attrib=None)¶ Bases:
object
Support structure to associate an element and its attributes with XSD simple types.
-
__init__
(name, path, xsd_type, attrib=None)¶ Initialize self. See help(type(self)) for accurate signature.
-
name
= None¶ The name is the element tag
-
path
= None¶ The XPath of this element
-
xsd_type
= None¶ XSD type of the element
-
attrib
= None¶ Attributes of element declaration (eg. minOccurs, default …)
-
basename
()¶ Get the name of the element without prefix or namespace URI.
-
get_type
()¶
-
is_optional
()¶
-
get_default
()¶
-
get_min_occurs
()¶
-
get_max_occurs
()¶
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__doc__': '\n Support structure to associate an element and its attributes with XSD simple types.\n ', '__init__': <function XSDElement.__init__>, 'basename': <function XSDElement.basename>, 'get_type': <function XSDElement.get_type>, 'is_optional': <function XSDElement.is_optional>, 'get_default': <function XSDElement.get_default>, 'get_min_occurs': <function XSDElement.get_min_occurs>, 'get_max_occurs': <function XSDElement.get_max_occurs>, '__dict__': <attribute '__dict__' of 'XSDElement' objects>, '__weakref__': <attribute '__weakref__' of 'XSDElement' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDAttribute
(xsd_type, attrib=None)¶ Bases:
object
Support structure to associate an attribute with XSD simple types.
-
__init__
(xsd_type, attrib=None)¶ Initialize self. See help(type(self)) for accurate signature.
-
xsd_type
= None¶ XSD type of the attribute
-
attrib
= None¶ Attributes of attribute declaration (eg. use, default, …)
-
get_type
()¶
-
is_optional
()¶
-
get_default
()¶
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__doc__': '\n Support structure to associate an attribute with XSD simple types.\n\n ', '__init__': <function XSDAttribute.__init__>, 'get_type': <function XSDAttribute.get_type>, 'is_optional': <function XSDAttribute.is_optional>, 'get_default': <function XSDAttribute.get_default>, '__dict__': <attribute '__dict__' of 'XSDAttribute' objects>, '__weakref__': <attribute '__weakref__' of 'XSDAttribute' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSDGroup
(name=None, group_type=None, attrib=None, *args, **kwargs)¶ Bases:
list
-
__init__
(name=None, group_type=None, attrib=None, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
attrib
= None¶ Attributes of element declaration (eg. minOccurs, default …)
-
get_min_occurs
()¶
-
get_max_occurs
()¶
-
__add__
¶ Return self+value.
-
__class__
¶ alias of
builtins.type
-
__contains__
¶ Return key in self.
-
__delattr__
¶ Implement delattr(self, name).
-
__delitem__
¶ Delete self[key].
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes', '__init__': <function XSDGroup.__init__>, 'get_min_occurs': <function XSDGroup.get_min_occurs>, 'get_max_occurs': <function XSDGroup.get_max_occurs>, '__dict__': <attribute '__dict__' of 'XSDGroup' objects>, '__weakref__': <attribute '__weakref__' of 'XSDGroup' objects>, '__doc__': None})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__getitem__
()¶ x.__getitem__(y) <==> x[y]
-
__gt__
¶ Return self>value.
-
__hash__
= None¶
-
__iadd__
¶ Implement self+=value.
-
__imul__
¶ Implement self*=value.
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__iter__
¶ Implement iter(self).
-
__le__
¶ Return self<=value.
-
__len__
¶ Return len(self).
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes'¶
-
__mul__
¶ Return self*value.n
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__reversed__
()¶ L.__reversed__() – return a reverse iterator over the list
-
__rmul__
¶ Return self*value.
-
__setattr__
¶ Implement setattr(self, name, value).
-
__setitem__
¶ Set self[key] to value.
-
__sizeof__
()¶ L.__sizeof__() – size of L in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
append
(object) → None -- append object to end¶
-
clear
() → None -- remove all items from L¶
-
copy
() → list -- a shallow copy of L¶
-
count
(value) → integer -- return number of occurrences of value¶
-
extend
(iterable) → None -- extend list by appending elements from the iterable¶
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
insert
()¶ L.insert(index, object) – insert object before index
-
pop
([index]) → item -- remove and return item at index (default last).¶ Raises IndexError if list is empty or index is out of range.
-
remove
(value) → None -- remove first occurrence of value.¶ Raises ValueError if the value is not present.
-
reverse
()¶ L.reverse() – reverse IN PLACE
-
sort
(key=None, reverse=False) → None -- stable sort *IN PLACE*¶
-
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_builtin_types_factory
(xsd_type_class=<class 'schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType'>, *args, **kwargs)¶ Build a dictionary for XSD builtin types mapping.
Parameters: - xsd_type_class – XSDType class for instances.
- args – List of tuples containing a single definition.
- kwargs – A dictionary with multiple built-in type declarations.
Returns: Dictionary that map a type name to a decoding type class instance
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSD_BUILTIN_TYPES
= {'QName': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db630>, 'anyType': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bddf08400>, 'anyURI': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db668>, 'boolean': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db6a0>, 'byte': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db048>, 'date': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db438>, 'dateTime': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db470>, 'decimal': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db080>, 'double': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db0b8>, 'duration': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db5f8>, 'float': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db0f0>, 'gDay': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db4a8>, 'gMonth': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db4e0>, 'gMonthDay': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db518>, 'gYear': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db550>, 'gYearMonth': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db588>, 'int': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db198>, 'integer': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db1d0>, 'long': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db208>, 'negativeInteger': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db240>, 'nonNegativeInteger': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db2e8>, 'nonPositiveInteger': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db2b0>, 'positiveInteger': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db278>, 'short': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db320>, 'string': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdfb0a2b0>, 'time': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db5c0>, 'unsignedByte': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db358>, 'unsignedInt': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db390>, 'unsignedLong': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db3c8>, 'unsignedShort': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDType object at 0x7f9bdf9db400>}¶ Dictionary for XSD built-in types mapping. The values are XSDType instances
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
XSI_ATTRIBUTES
= {'{http://www.w3.org/2001/XMLSchema-instance}noNamespaceSchemaLocation': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDAttribute object at 0x7f9bdf9db710>, '{http://www.w3.org/2001/XMLSchema-instance}schemaLocation': <schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.XSDAttribute object at 0x7f9bdf9db6d8>}¶ XSI attributes for schema instances
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_simple_type_factory
(elem, **kwargs)¶ Factory function for XSD simple type declaration.
Parameters: elem – The ElementTree’s Element. It must be a simpleType declaration element. :param kwargs: Various lookup tables and parameters, dependant by the context where the function is called. :return: a couple with the type_name, that maybe an empty string, and the XSDSimpleType instance that represents the XSD declaration.
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_attribute_type_factory
(elem, **kwargs)¶ Factory function for XSD attribute declaration.
Parameters: elem – The ElementTree’s Element. It must be a attribute declaration element. :param kwargs: Various lookup tables and parameters, dependant by the context where the function is called. :return: a couple with the attribute name and the instance of XSDType associated with it.
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_complex_type_factory
(elem, **kwargs)¶ Factory function for XSD complex type declaration.
Parameters: elem – The ElementTree’s Element. It must be a complexType declaration element. :param kwargs: Various lookup tables and parameters, dependant by the context where the function is called. :return: a couple with the type_name, that maybe an empty string, and the XSDComplexType instance that represents the XSD declaration.
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_group_factory
(elem, **kwargs)¶
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_element_factory
(elem, xsd_element=None, **kwargs)¶ Factory function for XSD element declaration. The function walks through complexTypes to find declarations of descendant XSD elements.
Parameters: elem – The ElementTree’s Element. It must be an element declaration element. :param xsd_element: The complex type, if it’s already created. :param kwargs: Various lookup tables and parameters, dependant by the context where the function is called. An xsd_elements dictionary is needed as the destination of the XSD element declarations.
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
add_xsd_types_to_dict
(declarations, target_dict, factory_function, **kwargs)¶ Function to add XSD global types declarations. Unresolved references to other types in the list are retried until are completed.
Parameters: declarations – Sequence of XSD simpleType/complexType declarations. :param target_dict: Dictionary for type declarations. :param factory_function: Factory function to use. :param kwargs: Various arguments to pass to the factory function.
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.xsdtypes.
xsd_get_type
(type_name, xsd_types)¶ Lookup for a XSD type in XSD predefined built-in types map and in XML Schema types map.
Parameters: - type_name – XSD type name
- xsd_types – Map for XSD simple types
Returns: BaseXSDType/XSDSimpleType instance