gpt4 book ai didi

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

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

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

XSDModelGroupDefinition.getContainer介绍

暂无

代码示例

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

protected void handleAnalysis()
{
 XSDModelGroupDefinition theResolvedModelGroupDefinition = getResolvedModelGroupDefinition();
 if (theResolvedModelGroupDefinition != this && theResolvedModelGroupDefinition.getContainer() != null)
 {
  ((XSDConcreteComponentImpl)theResolvedModelGroupDefinition).analyze();
 }
}

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

protected void handleAnalysis()
{
 XSDModelGroupDefinition theResolvedModelGroupDefinition = getResolvedModelGroupDefinition();
 if (theResolvedModelGroupDefinition != this && theResolvedModelGroupDefinition.getContainer() != null)
 {
  ((XSDConcreteComponentImpl)theResolvedModelGroupDefinition).analyze();
 }
}

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

@Override
protected void patch()
{
 analysisState = UNANALYZED;
 super.patch();
 XSDModelGroupDefinition theResolvedModelGroupDefinition = getResolvedModelGroupDefinition();
 if (theResolvedModelGroupDefinition != this && (forceResolve || theResolvedModelGroupDefinition.getContainer() == null))
 {
  XSDModelGroupDefinition newResolvedModelGroupDefinition =
   resolveModelGroupDefinition(theResolvedModelGroupDefinition.getTargetNamespace(), theResolvedModelGroupDefinition.getName());
  if (forceResolve || newResolvedModelGroupDefinition.getContainer() != null)
  {
   handleNewResolvedModelGroupDefinition(newResolvedModelGroupDefinition);
  }
 }
}

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

@Override
protected void patch()
{
 analysisState = UNANALYZED;
 super.patch();
 XSDModelGroupDefinition theResolvedModelGroupDefinition = getResolvedModelGroupDefinition();
 if (theResolvedModelGroupDefinition != this && (forceResolve || theResolvedModelGroupDefinition.getContainer() == null))
 {
  XSDModelGroupDefinition newResolvedModelGroupDefinition =
   resolveModelGroupDefinition(theResolvedModelGroupDefinition.getTargetNamespace(), theResolvedModelGroupDefinition.getName());
  if (forceResolve || newResolvedModelGroupDefinition.getContainer() != null)
  {
   handleNewResolvedModelGroupDefinition(newResolvedModelGroupDefinition);
  }
 }
}

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

/**
 * This returns XSDModelGroupDefinition.gif.
 */
@Override
public Object getImage(Object object)
{
 XSDModelGroupDefinition xsdModelGroupDefinition = ((XSDModelGroupDefinition)object);
 XSDModelGroupDefinition resolvedModelGroupDefinition = xsdModelGroupDefinition.getResolvedModelGroupDefinition();
 return 
  XSDEditPlugin.INSTANCE.getImage
   (resolvedModelGroupDefinition.getContainer() == null ?
     "full/obj16/XSDModelGroupDefinition" :
     xsdModelGroupDefinition.getResolvedModelGroupDefinition() == xsdModelGroupDefinition ?
      "full/obj16/XSDModelGroupDefinition" :
      "full/obj16/XSDModelGroupUse");
}

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

public void setInput(IWorkbenchPart part, ISelection selection)
{
 super.setInput(part, selection);
 init();
 relayout();
 
 if (isReference)
 {
  TypesHelper helper = new TypesHelper(xsdSchema);
  List items = new ArrayList();
  items = helper.getModelGroups();
  if (input instanceof XSDModelGroupDefinition)
  {
   XSDModelGroupDefinition group = (XSDModelGroupDefinition) input;
   XSDConcreteComponent parent = group.getContainer();
   while (parent != null)
   {
    if (parent instanceof XSDModelGroupDefinition)
    {
     items.remove(((XSDModelGroupDefinition)parent).getQName());
     break;
    }
    parent = parent.getContainer();
   }
  }
  items.add(0, ""); //$NON-NLS-1$
  componentNameCombo.setItems((String [])items.toArray(new String[0]));
 }
}

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

protected void handleNewResolvedModelGroupDefinition(XSDModelGroupDefinition newResolvedModelGroupDefinition)
{
 if (newResolvedModelGroupDefinition.getContainer() instanceof XSDRedefine &&
    newResolvedModelGroupDefinition.contains(this))
 {
  XSDSchema redefinedSchema = ((XSDRedefine)newResolvedModelGroupDefinition.getContainer()).getIncorporatedSchema();
  if (redefinedSchema != null)
  {
   XSDModelGroupDefinition redefinedModelGroupDefinition =
    (XSDModelGroupDefinition)((XSDSchemaImpl)redefinedSchema).getRedefinitionMap().get(newResolvedModelGroupDefinition);
   if (redefinedModelGroupDefinition != null)
   {
    newResolvedModelGroupDefinition = redefinedModelGroupDefinition;
   }
  }
 }
 if (newResolvedModelGroupDefinition != getResolvedModelGroupDefinition())
 {
  setResolvedModelGroupDefinition(newResolvedModelGroupDefinition);
  if (getContainer() instanceof XSDParticle)
  {
   ((XSDParticle)getContainer()).setTerm(newResolvedModelGroupDefinition.getModelGroup());
  }
 }
}

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

if (otherXSDModelGroupDefinition == null || otherXSDModelGroupDefinition.getContainer() == null)
XSDParticle xsdParticle = (XSDParticle)otherXSDModelGroupDefinition.getContainer();
if (xsdParticle.getMinOccurs() != 1 || xsdParticle.getMaxOccurs() != 1)

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

if (otherXSDModelGroupDefinition.getContainer() == null)
XSDParticle xsdParticle = (XSDParticle)otherXSDModelGroupDefinition.getContainer();
if (xsdParticle.getMinOccurs() != 1 || xsdParticle.getMaxOccurs() != 1)

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

if (theResolvedModelGroupDefinition.getContainer() == null)

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

if (theResolvedModelGroupDefinition.getContainer() == null)

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