gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-26 12:27:05 25 4
gpt4 key购买 nike

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

XSDAttributeGroupDefinition.getAttributeWildcardContent介绍

[英]Returns the value of the 'Attribute Wildcard Content' containment reference.

This concrete reference represents the attribute wildcard defined within the body of an attributeGroup element.
[中]返回“属性通配符内容”包含引用的值。
这个具体的引用表示在{$0$}元素体中定义的属性通配符。

代码示例

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

public ITreeElement[] getChildren()
{
 XSDAttributeGroupDefinition xsdAttributeGroup = (XSDAttributeGroupDefinition) target;
 List list = new ArrayList();
 list.addAll(xsdAttributeGroup.getContents());
 XSDWildcard wildcard = xsdAttributeGroup.getAttributeWildcardContent();
 if (wildcard != null)
 {
  list.add(wildcard);
 }
 List adapterList = new ArrayList();
 populateAdapterList(list, adapterList);
 return (ITreeElement[]) adapterList.toArray(new ITreeElement[0]);
}

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

protected boolean calculateEnabled()
{
 boolean rc = super.calculateEnabled();
 if (rc)
 {
  Object selection = ((IStructuredSelection) getSelection()).getFirstElement();
  if (selection instanceof XSDBaseAdapter)
  {
   selection = ((XSDBaseAdapter) selection).getTarget();
  }
  if (selection instanceof XSDComplexTypeDefinition)
  {
   return ((XSDComplexTypeDefinition)selection).getAttributeWildcardContent() == null;
  }
  else if (selection instanceof XSDAttributeGroupDefinition)
  {
   return ((XSDAttributeGroupDefinition)selection).getAttributeWildcardContent() == null;
  }
  
 }
 return rc;
}

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

xsdAttributeGroupDefinition.getAttributeWildcardContent(),
otherXSDAttributeGroupDefinition.getAttributeUses(),
xsdAttributeGroupDefinition.getAttributeUses(),

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

xsdAttributeGroupDefinition.getAttributeWildcardContent(),
otherXSDAttributeGroupDefinition.getAttributeUses(),
xsdAttributeGroupDefinition.getAttributeUses(),

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com