xsdtoplevelattribute.vm

来自「网上下载的Eclipse 插件」· VM 代码 · 共 20 行

VM
20
字号

#PrintSubheaderComment( $modelElement )

#if( ! $modelElement.Type.isTopLevel() )
<xs:attribute name="$modelElement.Name"
#else
<xs:attribute name="$modelElement.Name" type="$modelElement.Type.XMLQName"
#end
  #if( $modelElement.isFixed() ) fixed="$!modelElement.DefaultValue"
  #elseif( $modelElement.DefaultValue && $modelElement.DefaultValue.length() > 0 ) default="$!modelElement.DefaultValue"
  #end
  #if( $modelElement.Form && $modelElement.Form.length() > 0 ) form="$!modelElement.Form"#end
  #if( $modelElement.Id ) id="$modelElement.Id"#end
>
  #PrintXSDAnnotation( $modelElement )
  #if( ! $modelElement.Type.isTopLevel() )
    #ProcessXSD( $modelElement.Type )
  #end
</xs:attribute>

⌨️ 快捷键说明

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