Class UniqueIdentifier
source code
object --+
|
UniqueIdentifier
Records a unique identifier, generally associated with a binding
generation action.
The identifier is a string, but gets wrapped in an instance of this
class to optimize comparisons and reduce memory footprint.
Invoking the constructor for this class on the same string multiple
times will return the same Python object.
An instance of this class compares equal to, and hashes equivalent to,
the uid string. When str
'd, the result is the uid; when
repr
'd, the result is a constructor call to
pyxb.utils.utility.UniqueIdentifier
.
|
|
|
|
|
|
|
|
|
|
|
associatedObjects(self)
The set of objects that have been associated with this identifier
instance. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
a new object with type S, a subtype of T
|
|
|
__ExistingUIDs = { ' PyXB-1.2.2-Builtin ' : pyxb.utils.utility.Uni...
|
|
__uid = None
hash(x)
|
|
__associatedObjects = None
hash(x)
|
Inherited from object :
__class__
|
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
- (inherited documentation)
|
Associate the given object witth this identifier.
This is a one-way association: the object is not provided with a
return path to this identifier instance.
|
Create a new UniqueIdentifier instance.
- Parameters:
uid (str or unicode ) - The unique identifier string. If present, it is the callers
responsibility to ensure the value is universally unique. If
None , one will be provided.
- Overrides:
object.__init__
|
hash(x)
- Overrides:
object.__hash__
- (inherited documentation)
|
__str__(self)
(Informal representation operator)
| source code
|
str(x)
- Overrides:
object.__str__
- (inherited documentation)
|
repr(x)
- Overrides:
object.__repr__
- (inherited documentation)
|
__ExistingUIDs
- Value:
{ ' PyXB-1.2.2-Builtin ' : pyxb.utils.utility.UniqueIdentifier('PyXB-1.2.2
-Builtin')}
|
|