gpt4 book ai didi

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

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

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

XSDAttributeGroupDefinition.getResolvedAttributeGroupDefinition介绍

[英]Returns the value of the 'Resolved Attribute Group Definition' reference.

This concrete reference represents the attribute group definition resolved by the ref attribute.
[中]返回“已解析属性组定义”引用的值。
这个具体的引用表示由ref属性解析的属性组定义。

代码示例

代码示例来源:origin: geotools/geotools

attGrp = attGrp.getResolvedAttributeGroupDefinition();

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

public Object caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroupDefinition)
{
 XSDConcreteComponent target = null;
 if (attributeGroupDefinition.isAttributeGroupDefinitionReference())
 {
  target = attributeGroupDefinition.getResolvedAttributeGroupDefinition();
 }
 return target;
}

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

/**
 * This returns XSDAttributeGroupDefinition.gif.
 */
@Override
public Object getImage(Object object)
{
 XSDAttributeGroupDefinition xsdAttributeGroupDefinition = ((XSDAttributeGroupDefinition)object);
 XSDAttributeGroupDefinition resolvedAttributeGroupDefinition = xsdAttributeGroupDefinition.getResolvedAttributeGroupDefinition();
 return 
  XSDEditPlugin.INSTANCE.getImage
   (resolvedAttributeGroupDefinition.getContainer() == null ?
    "full/obj16/XSDAttributeGroupUnresolved" :
    xsdAttributeGroupDefinition.getResolvedAttributeGroupDefinition() == xsdAttributeGroupDefinition ?
     "full/obj16/XSDAttributeGroupDefinition" :
     "full/obj16/XSDAttributeGroupUse");
}

代码示例来源:origin: org.geotools/gt2-xml-core

public boolean visit(XSDTypeDefinition type) {
    //simple types dont have attributes
    if (type instanceof XSDSimpleTypeDefinition) {
      return true;
    }
    XSDComplexTypeDefinition cType = (XSDComplexTypeDefinition) type;
    //get all the attribute content (groups,or uses) and add to q 
    List attContent = cType.getAttributeContents();
    for (Iterator itr = attContent.iterator(); itr.hasNext();) {
      XSDAttributeGroupContent content = (XSDAttributeGroupContent) itr.next();
      if (content instanceof XSDAttributeUse) {
        //an attribute, add it to the list
        XSDAttributeUse use = (XSDAttributeUse) content;
        attributes.add(use.getAttributeDeclaration());
      } else if (content instanceof XSDAttributeGroupDefinition) {
        //attribute group, add all atts in group to list
        XSDAttributeGroupDefinition attGrp = (XSDAttributeGroupDefinition) content;
        if (attGrp.isAttributeGroupDefinitionReference()) {
          attGrp = attGrp.getResolvedAttributeGroupDefinition();
        }
        List uses = attGrp.getAttributeUses();
        for (Iterator aitr = uses.iterator(); aitr.hasNext();) {
          XSDAttributeUse use = (XSDAttributeUse) aitr.next();
          attributes.add(use.getAttributeDeclaration());
        }
      }
    }
    return true;
  }
};

代码示例来源:origin: org.geotools.xsd/gt-core

public boolean visit(XSDTypeDefinition type) {
    //simple types dont have attributes
    if (type instanceof XSDSimpleTypeDefinition) {
      return true;
    }
    XSDComplexTypeDefinition cType = (XSDComplexTypeDefinition) type;
    //get all the attribute content (groups,or uses) and add to q 
    List attContent = cType.getAttributeContents();
    for (Iterator itr = attContent.iterator(); itr.hasNext();) {
      XSDAttributeGroupContent content = (XSDAttributeGroupContent) itr.next();
      if (content instanceof XSDAttributeUse) {
        //an attribute, add it to the list
        XSDAttributeUse use = (XSDAttributeUse) content;
        attributes.add(use.getAttributeDeclaration());
      } else if (content instanceof XSDAttributeGroupDefinition) {
        //attribute group, add all atts in group to list
        XSDAttributeGroupDefinition attGrp = (XSDAttributeGroupDefinition) content;
        if (attGrp.isAttributeGroupDefinitionReference()) {
          attGrp = attGrp.getResolvedAttributeGroupDefinition();
        }
        List uses = attGrp.getAttributeUses();
        for (Iterator aitr = uses.iterator(); aitr.hasNext();) {
          XSDAttributeUse use = (XSDAttributeUse) aitr.next();
          attributes.add(use.getAttributeDeclaration());
        }
      }
    }
    return true;
  }
};

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

public void getAttributeUses(XSDAttributeGroupDefinition attributeGroupDefinition, List list)
{
 Iterator i = attributeGroupDefinition.getResolvedAttributeGroupDefinition().getContents().iterator();
 while (i.hasNext())
 {
  XSDAttributeGroupContent attrGroupContent = (XSDAttributeGroupContent) i.next();
  if (attrGroupContent instanceof XSDAttributeGroupDefinition)
  {
   getAttributeUses((XSDAttributeGroupDefinition) attrGroupContent, list);
  }
  else
  {
   list.add(XSDAdapterFactory.getInstance().adapt(attrGroupContent));
  }
 }
}

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

public void visitAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroup)
{
 for (Iterator it = attributeGroup.getContents().iterator(); it.hasNext(); )
 {
  Object o = it.next();
  if (o instanceof XSDAttributeUse)
  {
   XSDAttributeUse attributeUse = (XSDAttributeUse)o;
   concreteComponentList.add(attributeUse.getAttributeDeclaration());
   thingsWeNeedToListenTo.add(attributeUse.getAttributeDeclaration());
  }
  else if (o instanceof XSDAttributeGroupDefinition)
  {
   XSDAttributeGroupDefinition attrGroup = (XSDAttributeGroupDefinition)o;
   thingsWeNeedToListenTo.add(attrGroup);
   if (attrGroup.isAttributeGroupDefinitionReference())
   {
    attrGroup = attrGroup.getResolvedAttributeGroupDefinition();
    visitAttributeGroupDefinition(attrGroup);
   }
  }
 }
}

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

public void visitAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroup)
{
 for (Iterator it = attributeGroup.getContents().iterator(); it.hasNext(); )
 {
  Object o = it.next();
  if (o instanceof XSDAttributeUse)
  {
   XSDAttributeUse attrUse = (XSDAttributeUse)o;
   visitAttributeDeclaration(attrUse.getContent());
  }
  else if (o instanceof XSDAttributeGroupDefinition)
  {
   XSDAttributeGroupDefinition attrGroup = (XSDAttributeGroupDefinition)o;
   visitAttributeGroupDefinition(attrGroup.getResolvedAttributeGroupDefinition());
  }
 }
}

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

public void visitAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroup)
{
 for (Iterator it = attributeGroup.getContents().iterator(); it.hasNext();)
 {
  Object o = it.next();
  if (o instanceof XSDAttributeUse)
  {
   XSDAttributeUse attributeUse = (XSDAttributeUse) o;
   concreteComponentList.add(attributeUse.getAttributeDeclaration());
   thingsWeNeedToListenTo.add(attributeUse.getAttributeDeclaration());
  }
  else if (o instanceof XSDAttributeGroupDefinition)
  {
   XSDAttributeGroupDefinition attrGroup = (XSDAttributeGroupDefinition) o;
   thingsWeNeedToListenTo.add(attrGroup);
   if (attrGroup.isAttributeGroupDefinitionReference())
   {
    attrGroup = attrGroup.getResolvedAttributeGroupDefinition();
    if (attrGroup.getContents().size() == 0)
    {
     concreteComponentList.add(new SpaceFiller("attribute")); //$NON-NLS-1$
    }
    visitAttributeGroupDefinition(attrGroup);
   }
  }
 }
}

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

protected List getModelChildren()
{
 List list = new ArrayList();
 
 XSDAttributeGroupDefinitionAdapter adapter = (XSDAttributeGroupDefinitionAdapter)getModel();
 XSDAttributeGroupDefinition attributeGroupDefinition = adapter.getXSDAttributeGroupDefinition();
 Iterator i = attributeGroupDefinition.getResolvedAttributeGroupDefinition().getContents().iterator();
 while (i.hasNext())
 {
  XSDAttributeGroupContent attrGroupContent = (XSDAttributeGroupContent) i.next();
  if (attrGroupContent instanceof XSDAttributeGroupDefinition)
  {
   list.add(XSDAdapterFactory.getInstance().adapt(attrGroupContent));
  }
  else
  {
   list.add(new TargetConnectionSpaceFiller((XSDBaseAdapter)getModel()));
  }
 }
 
 if (list.isEmpty())
 {
  list.add(new TargetConnectionSpaceFiller((XSDBaseAdapter)getModel()));
 }
 return list;
}

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

((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition();
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze();
result.addAll(xsdAttributeGroupDefinition.getAttributeUses());

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

((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition();
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze();
result.addAll(xsdAttributeGroupDefinition.getAttributeUses());

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

if (attrGroup.isAttributeGroupDefinitionReference())
 attrGroup = attrGroup.getResolvedAttributeGroupDefinition();
 visitAttributeGroupDefinition(attrGroup);

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

((XSDAttributeGroupDefinition) parentComponent).getResolvedAttributeGroupDefinition().getContents().add(container);
else
 ((XSDAttributeGroupDefinition) parentComponent).getResolvedAttributeGroupDefinition().getContents().add(0, container);
addedBack = true;

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

((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition();
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze();
XSDWildcard attributeGroupWildcard = xsdAttributeGroupDefinition.getAttributeWildcard();

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

((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition();
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze();
XSDWildcard attributeGroupWildcard = xsdAttributeGroupDefinition.getAttributeWildcard();

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

if (attrGroupDef.isAttributeGroupDefinitionReference())
 objectToReveal = attrGroupDef.getResolvedAttributeGroupDefinition();

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

Iterator i = ((XSDAttributeGroupDefinition) parent).getResolvedAttributeGroupDefinition().getAttributeUses().iterator();
 while (i.hasNext())
attributeUse.setContent(attribute);
((XSDAttributeGroupDefinition) parent).getResolvedAttributeGroupDefinition().getContents().add(attributeUse);
formatChild(parent.getElement());

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

(otherXSDAttributeGroupDefinition.getResolvedAttributeGroupDefinition()))

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

(otherXSDAttributeGroupDefinition.getResolvedAttributeGroupDefinition()))

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