IDocumentSerializable module

class IDocumentSerializable.IDocumentSerializable

Bases: ABC

An abstract base class for document serializable objects.

abstract ReadXmlAttributes(reader: IXDLSAttributeReader)

Reads the XML attributes of the object.

Parameters:

reader – The reader object used to read the XML attributes.

abstract ReadXmlContent(reader: IXDLSContentReader) bool

Reads the XML content of the object.

Parameters:

reader – The reader object used to read the XML content.

Returns:

True if the XML content was successfully read, False otherwise.

Return type:

bool

abstract RestoreReference(name: str, value: int)

Restores a reference to an object.

Parameters:
  • name – The name of the reference.

  • value – The value of the reference.

abstract WriteXmlAttributes(writer: IXDLSAttributeWriter)

Writes the XML attributes of the object.

Parameters:

writer – The writer object used to write the XML attributes.

abstract WriteXmlContent(writer: IXDLSContentWriter)

Writes the XML content of the object.

Parameters:

writer – The writer object used to write the XML content.

abstract property XDLSHolder: XDLSHolder

Gets the XDLSHolder object associated with the object.

Returns:

The XDLSHolder object associated with the object.

Return type:

XDLSHolder