org.eclipse.xsd.XSDNamedComponent.getAliasName()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.eclipse.xsd.XSDNamedComponent.getAliasName()方法的一些代码示例,展示了XSDNamedComponent.getAliasName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDNamedComponent.getAliasName()方法的具体详情如下:
包路径:org.eclipse.xsd.XSDNamedComponent
类名称:XSDNamedComponent
方法名:getAliasName

XSDNamedComponent.getAliasName介绍

[英]Returns the value of the 'Alias Name' attribute.

This attempts to construct a relatively meaningful name for an anonymous component by using the name of the containing component and an indication of the relation to that component, For example, "E_._type" would be the alias name of the anonymous type definition of the element "E" and "LT_._item" would be the alias name of the anonymous item type definition of the list type defintion "LT".
[中]返回“别名”属性的值。
这试图通过使用包含组件的名称和与该组件的关系指示,为匿名组件构造一个相对有意义的名称,例如,“[$0$]”将是元素“[$1$]”的匿名类型定义的别名,“[$2$]”将是列表类型定义“[$3$]”的匿名项目类型定义的别名。

代码示例

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

String baseName = xsdNamedComponent.getAliasName();
if (container instanceof XSDSimpleTypeDefinition)

代码示例来源:origin: org.eclipse/org.eclipse.xsd

String baseName = xsdNamedComponent.getAliasName();
if (container instanceof XSDSimpleTypeDefinition)

相关文章