PartId

class PartId(id=None)[source]

Bases: object

Methods Summary

equals(other)

fromBin(eis)

Read the binary representation of a PartId from an EndianInput stream and return the PartId

setId(idStr)

Set this PartId to the value in idStr.

toBin(eos)

Write the binary representation of this into an EndianOutput stream

validate(idStr)

validate idStr, which must be a string or None If idStr has an invalid format or is not a string a string message is returned If idStr is valid, None is returned

Methods Documentation

equals(other)[source]
static fromBin(eis)[source]

Read the binary representation of a PartId from an EndianInput stream and return the PartId

setId(idStr)[source]

Set this PartId to the value in idStr. idStr can be None or a valid string. If string is invalid a ValueError will be raised

toBin(eos)[source]

Write the binary representation of this into an EndianOutput stream

static validate(idStr)[source]

validate idStr, which must be a string or None If idStr has an invalid format or is not a string a string message is returned If idStr is valid, None is returned