/// <summary> /// Obtiene el ML del elemento /// </summary> protected override void CreateInnerDocument(DocumentFileModel objDocument) { if (objDocument.StructType == LanguageStructModel.StructType.NameSpace) { GetMLNameSpace(MLBuilder.Root, objDocument); } else { // Añade la cabecera MLBuilderHelper.GetMLHeader(MLBuilder.Root, objDocument); // Añade el cuerpo switch (objDocument.StructType) { case LanguageStructModel.StructType.Class: GetMLClass(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Interface: GetMLInterface(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Struct: GetMLStruct(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Constructor: GetMLConstructor(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Method: GetMLMethod(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Property: GetMLProperty(MLBuilder.Root, objDocument); break; case LanguageStructModel.StructType.Enum: GetMLEnum(MLBuilder.Root, objDocument); break; } // Añade los comentarios MLBuilderHelper.GetMLRemarks(MLBuilder.Root, objDocument); } }
/// <summary> /// Obtiene el ML del elemento /// </summary> protected override void CreateInnerDocument(DocumentFileModel objDocument) { if (objDocument.StructType == LanguageStructModel.StructType.NameSpace) { GetMLNameSpace(MLBuilder.Root, objDocument); } else { // Añade la cabecera MLBuilderHelper.GetMLHeader(MLBuilder.Root, objDocument); // Añade los comentarios MLBuilderHelper.GetMLRemarks(MLBuilder.Root, objDocument); // Añade el cuerpo switch (objDocument.StructType) { case LanguageStructModel.StructType.Class: case LanguageStructModel.StructType.Interface: case LanguageStructModel.StructType.Struct: AddTablesComplexParts(MLBuilder.Root, objDocument); break; } } }