xsdattribute.vm

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

VM
24
字号
## omitted type or anonymous embedded type definition
#if( ! $modelElement.Type || ! $modelElement.Type.isTopLevel() )
<xs:attribute name="$modelElement.Name"
#elseif( $modelElement.Type.XSDClassName == "XSDComplexType" && $modelElement.MaxOccurs != 1 )
<xs:attribute name="$modelElement.Name" type="${xsdPrefix}IDREFS"
#elseif( $modelElement.Type.XSDClassName == "XSDComplexType" )
<xs:attribute name="$modelElement.Name" type="${xsdPrefix}$!modelElement.LinkType"
#else
<xs:attribute name="$modelElement.Name" type="$!modelElement.Type.XMLQName"
#end
  #if( $modelElement.isProhibited() ) use="prohibited"
  #elseif( $modelElement.isFixed() ) fixed="$!modelElement.DefaultValue"
  #elseif( $modelElement.DefaultValue && $modelElement.DefaultValue.length() > 0 ) default="$!modelElement.DefaultValue"
  #elseif( $modelElement.isRequired() ) use="required"
  #end
  #if( $modelElement.Form && $modelElement.Form.length() > 0 ) form="$!modelElement.Form"#end
  #if( $modelElement.Id ) id="$modelElement.Id"#end
>
  #PrintXSDAnnotation( $modelElement )
  #if( $modelElement.Type && ! $modelElement.Type.isTopLevel() )
    #ProcessXSD( $modelElement.Type )
  #end
</xs:attribute>

⌨️ 快捷键说明

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