def _writeBooleanLiteralXML(self, elem):
    assert isinstance(elem, autosar.constant.BooleanValue)
    lines = []
    lines.append('<BOOLEAN-LITERAL>')
    lines.append(self.indent(('<SHORT-NAME>%s</SHORT-NAME>' % elem.name), 1))
    tag = elem.rootWS().find(elem.typeRef).tag(self.version)
    lines.append(self.indent(('<TYPE-TREF DEST="%s">%s</TYPE-TREF>' % (tag, elem.typeRef)), 1))
    lines.append(self.indent(('<VALUE>%s</VALUE>' % ('true' if (elem.value is True) else 'false')), 1))
    lines.append('</BOOLEAN-LITERAL>')
    return lines
def _writeBooleanLiteralXML(self, elem):
    assert isinstance(elem, autosar.constant.BooleanValue)
    lines = []
    lines.append('<BOOLEAN-LITERAL>')
    lines.append(self.indent(('<SHORT-NAME>%s</SHORT-NAME>' % elem.name), 1))
    tag = elem.rootWS().find(elem.typeRef).tag(self.version)
    lines.append(self.indent(('<TYPE-TREF DEST="%s">%s</TYPE-TREF>' % (tag, elem.typeRef)), 1))
    lines.append(self.indent(('<VALUE>%s</VALUE>' % ('true' if (elem.value is True) else 'false')), 1))
    lines.append('</BOOLEAN-LITERAL>')
    return lines