def generateMethodVersionEntityInfo(versionDict): for methodVersionEntity in versionDict.values(): writeRecordPrefix(of, "MethodVersion") writeStringField(of, "revision", methodVersionEntity.getRevision()) writeStringField(of, "versionOfMethod", methodVersionEntity.getMethodName()) writeBooleanField(of, "isCreation", methodVersionEntity.isCreation()) writeBooleanField(of, "isDeletion", methodVersionEntity.isDeletion()) writeBooleanField(of, "isModification", methodVersionEntity.isModification()) writeRecordPostfix(of)
def generateFunctionVersionEntityInfo(versionDict): for functionVersionEntity in versionDict.values(): writeRecordPrefix(of, "FunctionVersion") writeStringField(of, "revision", functionVersionEntity.getRevision()) writeStringField(of, "versionOfFunction", functionVersionEntity.getFunctionName()) writeBooleanField(of, "isCreation", functionVersionEntity.isCreation()) writeBooleanField(of, "isDeletion", functionVersionEntity.isDeletion()) writeBooleanField(of, "isModification", functionVersionEntity.isModification()) writeRecordPostfix(of)
def generateClassVersionEntityInfo(versionDict): for classVersionEntity in versionDict.values(): writeRecordPrefix(of, "ClassVersion") writeStringField(of, "revision", classVersionEntity.getRevision()) writeStringField(of, "versionOfClass", classVersionEntity.getClassName()) writeBooleanField(of, "isCreation", classVersionEntity.isCreation()) writeBooleanField(of, "isDeletion", classVersionEntity.isDeletion()) writeBooleanField(of, "isModification", classVersionEntity.isModification()) writeRecordPostfix(of)
def generateGlobalVariableVersionEntityInfo(versionDict): for globalVarVersionEntity in versionDict.values(): writeRecordPrefix(of, "GlobalVariableVersion") writeStringField(of, "revision", globalVarVersionEntity.getRevision()) writeStringField(of, "versionOfGlobalVariable", globalVarVersionEntity.getGlobalVariableName()) writeBooleanField(of, "isCreation", globalVarVersionEntity.isCreation()) writeBooleanField(of, "isDeletion", globalVarVersionEntity.isDeletion()) writeBooleanField(of, "isModification", globalVarVersionEntity.isModification()) writeRecordPostfix(of)
def generateAttributeVersionEntityInfo(versionDict): for attributeVersionEntity in versionDict.values(): writeRecordPrefix(of, "AttributeVersion") writeStringField(of, "revision", attributeVersionEntity.getRevision()) writeStringField(of, "versionOfAttribute", attributeVersionEntity.getAttributeName()) writeBooleanField(of, "isCreation", attributeVersionEntity.isCreation()) writeBooleanField(of, "isDeletion", attributeVersionEntity.isDeletion()) writeBooleanField(of, "isModification", attributeVersionEntity.isModification()) writeRecordPostfix(of)