Home | Trees | Indices | Help |
|
---|
|
Utility functions and classes.
|
|||
Object A dummy class used to hold arbitrary attributes. |
|||
_DeconflictSymbols_mixin Mix-in used to deconflict public symbols in classes that may be inherited by generated binding classes. |
|||
Graph Represent a directed graph with arbitrary objects as nodes. |
|||
UniqueIdentifier Records a unique identifier, generally associated with a binding generation action. |
|||
UTCOffsetTimeZone A datetime.tzinfo subclass that helps deal with UTC
conversions in an ISO8601 world.
|
|||
LocalTimeZone A datetime.tzinfo subclass for the local time zone.
|
|||
PrivateTransient_mixin Emulate the transient keyword from Java for private member variables. |
|||
Location | |||
Locatable_mixin |
|
|||
|
|||
|
|||
str
|
|
||
|
|||
unicode
|
|
||
|
|||
str
|
|
||
|
|||
str
|
|
||
str
|
|
||
str
|
|
||
str
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
str
|
|
||
|
|||
|
|
|||
_log = <logging.Logger object>
|
|||
_UnderscoreSubstitute_re = re.compile(r'
|
|||
_NonIdentifier_re = re.compile(r'
|
|||
_PrefixUnderscore_re = re.compile(r'^_
|
|||
_PrefixDigit_re = re.compile(r'^\d
|
|||
_CamelCase_re = re.compile(r'_\w')
|
|||
_PythonKeywords =
Python keywords. |
|||
_PythonBuiltInConstants =
Other symbols that aren't keywords but that can't be used. |
|||
_Keywords =
The keywords reserved for Python, derived from _PythonKeywords and _PythonBuiltInConstants. |
|||
__TabCRLF_re = re.compile(r'
|
|||
__MultiSpace_re = re.compile(r'
|
|||
LocationPrefixRewriteMap_ =
|
|||
__HaveUUID = True
|
|||
__package__ =
|
|
Class decorator that fills in missing ordering methods. Concept derived from Python 2.7.5 functools.total_ordering, but this version requires that __eq__ and __lt__ be provided, and unconditionally overrides __ne__, __gt__, __le__, and __ge__ with the derived versions. This is still necessary in Python 3 because in Python 3 the comparison x >= y is done by the __ge__ inherited from object, which does not handle the case where x and y are not the same type even if the underlying y < x would convert x to be compatible. |
Tuple comparison that permits
|
Convert a string into a literal value that can be used in Python source. This just calls
|
Default implementation for _XMLIdentifierToPython For historical reasons, this converts the identifier from a str to unicode in the system default encoding. This should have no practical effect.
|
Configure a callable MakeIdentifier uses to pre-process an XM Lidentifier. In Python3, identifiers can be full Unicode tokens, but in Python2, all identifiers must be ASCII characters. MakeIdentifier enforces this by removing all characters that are not valid within an identifier. In some cases, an application generating bindings may be able to transliterate Unicode code points that are not valid Python identifier characters into something else. This callable can be assigned to perform that translation before the invalid characters are stripped. It is not the responsibility of this callable to do anything other than replace whatever characters it wishes to. All transformations performed by MakeIdentifier will still be applied, to ensure the output is in fact a legal identifier.
|
Default implementation for _XMLIdentifierToPython For historical reasons, this converts the identifier from a str to unicode in the system default encoding. This should have no practical effect.
|
Convert a string into something suitable to be a Python identifier. The string is processed by _XMLIdentifierToPython. Following this, dashes, spaces, and periods are replaced by underscores, and characters not permitted in Python identifiers are stripped. Furthermore, any leading underscores are removed. If the result begins with a digit, the character 'n' is prepended. If the result is the empty string, the string 'emptyString' is substituted. No check is made for conflicts with keywords.
|
Convert a string into something that can be a valid element in a Python module path. Module path elements are similar to identifiers, but may begin with numbers and should not have leading underscores removed. |
If the provided string See also MakeUnique.
|
Return an identifier based on The returned identifier is made unique by appending an underscore and, if necessary, a serial number. The order is :
|
Combine everything required to create a unique identifier. Leading and trailing underscores are stripped from all identifiers.
Note: Only module-level identifiers should be treated as protected. The class-level _DeconflictSymbols_mixin infrastructure does not include protected symbols. All class and instance members beginning with a single underscore are reserved for the PyXB infrastructure. |
Normalize the given string. Exactly one of the
See the whiteSpace facet.
|
Normalize a URI against an optional parent_uri in the way that is done
for If no URI schema is present, this will normalize a file system path. Optionally, the resulting absolute URI can subsequently be rewritten to replace specified prefix strings with alternative strings, e.g. to convert a remote URI to a local repository. This rewriting is done after the conversion to an absolute URI, but before normalizing file system URIs.
|
Retrieve the contents of the uri as raw data. If the uri does not include a scheme (e.g., |
Return a file object used to write binary data into the given file. Use the To get a writable file but leaving any existing contents in place, set
the The returned file pointer is positioned at the end of the file.
|
Calculate a cryptographic hash of the given string. For example, this is used to verify that a given module file contains bindings from a previous generation run for the same namespace. See OpenOrCreate. If the text is in Unicode, the hash is calculated on the UTF-8 encoding of the text.
|
Obtain a UUID using the best available method. On a version of python
that does not incorporate the
|
Provide a list of absolute paths to files present in any of a set of directories and meeting certain criteria. This is used, for example, to locate namespace archive files within the archive path specified by the user. One could use: files = GetMatchingFiles('&bundles//:+', pattern=re.compile('.*\.wxs$'), default_path_wildcard='+', default_path='/usr/local/pyxb/nsarchives', prefix_pattern='&', prefix_substituend='/opt/pyxb') to obtain all files that can be recursively found within
|
Filtered built-in repr for python 2/3 compatibility in generated bindings. All generated string values are to be unicode. We always import unicode_literals from __future__, so we want plain quotes with no prefix u. Strip that off. Integer constants should not have the suffix L even if they do not fit in a Python2 int. The references generated through this function are never used for calculations, so the implicit cast to a larger type is sufficient. All other values use their standard representations. |
|
_PythonKeywordsPython keywords. Note that types like int and float are not keywords.
|
_PythonBuiltInConstantsOther symbols that aren't keywords but that can't be used.
|
_KeywordsThe keywords reserved for Python, derived from _PythonKeywords and _PythonBuiltInConstants.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Sep 18 22:33:49 2016 | http://epydoc.sourceforge.net |