def _writeLiteralValueXML(self, elem):
    if isinstance(elem, autosar.constant.IntegerValue):
        return self._writeIntegerLiteralXML(elem)
    elif isinstance(elem, autosar.constant.RecordValue):
        return self._writeRecordSpecificationXML(elem)
    elif isinstance(elem, autosar.constant.StringValue):
        return self._writeStringLiteralXML(elem)
    elif isinstance(elem, autosar.constant.BooleanValue):
        return self._writeBooleanLiteralXML(elem)
    elif isinstance(elem, autosar.constant.ArrayValue):
        return self._writeArraySpecificationXML(elem)
    else:
        raise NotImplementedError(type(elem))
def _writeLiteralValueXML(self, elem):
    if isinstance(elem, autosar.constant.IntegerValue):
        return self._writeIntegerLiteralXML(elem)
    elif isinstance(elem, autosar.constant.RecordValue):
        return self._writeRecordSpecificationXML(elem)
    elif isinstance(elem, autosar.constant.StringValue):
        return self._writeStringLiteralXML(elem)
    elif isinstance(elem, autosar.constant.BooleanValue):
        return self._writeBooleanLiteralXML(elem)
    elif isinstance(elem, autosar.constant.ArrayValue):
        return self._writeArraySpecificationXML(elem)
    else:
        raise NotImplementedError(type(elem))