Home | Trees | Indices | Help |
|
---|
|
Utility functions and classes.
|
|||
_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. |
|||
_LocationBase Wrap a location. |
|||
Location | |||
Locatable_mixin |
|
|||
str
|
|
||
|
|||
unicode
|
|
||
|
|||
str
|
|
||
str
|
|
||
str
|
|
||
str
|
|
||
str
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
str
|
|
||
|
|
|||
_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__ =
|
|
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.
|
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 a text string. If the uri does not include a scheme (e.g., |
Return a file object used to write 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
|
|
_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 Fri Jun 15 14:42:42 2012 | http://epydoc.sourceforge.net |