- encode([value])
The encode method converts the content of the class
instance into BER octet-stream (string).
The value parameter, whenever used for last-minute
assignment, must be an Object ID in symbolic. "dotted" form (for example
'.1.3.6.1.2.1.1.1.0').
- decode(data)
The decode method attempts to convert the
data octet-stream (string) into an Object-ID, and
returns a tuple of (objectid_class_instance,
rest).
Any unprocessed part of data octet-stream is returned
in the rest string.
The data octet-stream must carry an ASN.1 Object ID value
or an exception would be thrown.
- update(value)
The update method assigns the value,
given in dotted notation, to class instance payload.
- isaprefix(other)
The isaprefix method returns true if the payload
of class instance is a prefix of the other Object ID
(given in dotted notation as string).
- str2num(oid)
The str2num method converts an Object ID oid,
given in a dotted form, into a list of integer sub-Object-IDs.
- num2str(oid)
The num2str method converts an Object ID oid,
given as a list of integer sub-Object IDs into dotted notation.
- __call__()
Class instance invocation would return currently stored payload.
- __cmp__(other)
Class instances may be compared against each other. The
comparation would return negative if other is greater, zero
on equivalence, positive if other is less.
- __repr__()
Returns the canonical string representation of the class instance.
- __str__()
Returns a nice string representation of the class instance.