⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsd_macros.vm

📁 网上下载的Eclipse 插件
💻 VM
字号:

#macro( ProcessUML elem )
#set( $removeResult = $modelElements.removeElement($elem) )
$umlController.process($elem)#end

#macro( ProcessXSD elem )
#set( $removeResult = $modelElements.removeElement($elem) )
$xsdController.process($elem)#end

#macro( AddModelElement elem )
#set( $addResult = $modelElements.addElement($elem) )
#end

#macro( RemoveModelElement elem )
#set( $removeResult = $modelElements.removeElement($elem) )
#end

#macro( XSDMultiplicity elem )
#if( $elem.MinOccurs == 0 && $elem.MaxOccurs == 1 ) minOccurs="0"
#elseif( $elem.MinOccurs != 1 || $elem.MaxOccurs != 1 ) minOccurs="$elem.MinOccurs" maxOccurs="#if($elem.MaxOccurs == -1)unbounded#else$elem.MaxOccurs#end"
#end
#end

#macro( PrintHeaderComment elem )
#if( $schemaComments )
<!-- ================================================= -->
<!-- ${elem.UMLClassName}:#if($elem.StereotypeName.length() > 0) <<${elem.StereotypeName}>>#end $elem.Name  -->
<!-- ================================================= -->
#end
#end

#macro( PrintSubheaderComment elem )
#if( $schemaComments )
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- ${elem.UMLClassName}:#if($elem.StereotypeName.length() > 0) <<${elem.StereotypeName}>>#end $elem.Name  -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
#end
#end

#macro( PrintXSDAnnotation xsdItem )
#if( $schemaAnnotation )
#if( $xsdItem.Documentation || $xsdItem.AppInfo )
    <xs:annotation>
#if( $xsdItem.Documentation && $xsdItem.Documentation.length() > 0 )
      <xs:documentation>$xsdItem.Documentation</xs:documentation>
#end
#if( $xsdItem.AppInfo && $xsdItem.AppInfo.length() > 0 )
      <xs:appinfo>$xsdItem.AppInfo</xs:appinfo>
#end
    </xs:annotation>
#end
#end
#end

#macro( DTDMultiplicity minOccurs maxOccurs )
#if( $minOccurs == 1 && $maxOccurs == 1 )#*
  *##elseif( $minOccurs == 0 && $maxOccurs == 1 )?#*
  *##elseif( $minOccurs == 0 && ($maxOccurs > 0 || $maxOccurs == -1) )*#*
  *##elseif( $minOccurs > 0 && ($maxOccurs > 0 || $maxOccurs == -1) )+#*
  *##end#end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -