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

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

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

XSDElementDeclaration.getContainer介绍

暂无

代码示例

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

if (at.getName().equals(ce.getName())) {
  found = true;
  if (ce.getContainer() instanceof XSDParticle) {
    XSDParticle part = (XSDParticle) ce.getContainer();
    at.setMinOccurs(part.getMinOccurs());
    at.setMaxOccurs(part.getMaxOccurs());

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

for (XSDElementDeclaration subs : dec.getSubstitutionGroup()) {
  if (subs != null
      && subs.getContainer() != null
      && subs.getContainer().equals(schema)) {
    toRemove.add(subs);

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

/**
 * This returns XSDElementDeclaration.gif.
 */
@Override
public Object getImage(Object object)
{
 XSDElementDeclaration xsdElementDeclaration = ((XSDElementDeclaration)object);
 XSDElementDeclaration resolvedElementDeclaration = xsdElementDeclaration.getResolvedElementDeclaration();
 return 
  XSDEditPlugin.INSTANCE.getImage
   (resolvedElementDeclaration.getContainer() == null ?
     "full/obj16/XSDElementUnresolved" :
     xsdElementDeclaration.getResolvedElementDeclaration() == xsdElementDeclaration ?
      "full/obj16/XSDElementDeclaration" :
      "full/obj16/XSDElementUse");
}

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

if (hasMinOccurs)
 int min = ((XSDParticle) xsdElementDeclaration.getContainer()).getMinOccurs();
 if (min == XSDParticle.UNBOUNDED)
 int min = ((XSDParticle) xsdElementDeclaration.getContainer()).getMinOccurs();
 result.append(String.valueOf(min));
 int max = ((XSDParticle) xsdElementDeclaration.getContainer()).getMaxOccurs();
 result.append(".."); //$NON-NLS-1$
 if (max == XSDParticle.UNBOUNDED)
 int max = ((XSDParticle) xsdElementDeclaration.getContainer()).getMaxOccurs();
 result.append(String.valueOf(max));

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

if (theSubstitutionGroupAffiliation != null && theSubstitutionGroupAffiliation.getContainer() == null)
 if (newSubstitutionGroupAffiliation.getContainer() != null && newSubstitutionGroupAffiliation != theSubstitutionGroupAffiliation)

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

if (theSubstitutionGroupAffiliation != null && theSubstitutionGroupAffiliation.getContainer() == null)
 if (newSubstitutionGroupAffiliation.getContainer() != null && newSubstitutionGroupAffiliation != theSubstitutionGroupAffiliation)

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

XSDModelGroup modelGroup = (XSDModelGroup) ((XSDElementDeclaration) previousRefComponent).getContainer().getContainer();
if (parentEditPart != null)
 modelGroup = ((ModelGroupEditPart) parentEditPart).getXSDModelGroup();
 XSDModelGroup modelGroup = (XSDModelGroup) ((XSDElementDeclaration) nextRefComponent).getContainer().getContainer();
 action = new MoveXSDElementAction(modelGroup, xsdComponentToDrag, previousRefComponent, nextRefComponent);
XSDModelGroup modelGroup = (XSDModelGroup) ((XSDElementDeclaration) previousRefComponent).getContainer().getContainer();
if (parentEditPart != null)
 modelGroup = ((ModelGroupEditPart) parentEditPart).getXSDModelGroup();

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

if (eleDec.getContainer() instanceof XSDSchema) // global element

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

protected void handleAnalysis()
{
 if (!isElementDeclarationReference())
 {
  XSDElementDeclaration theSubstitutionGroupAffiliation = getSubstitutionGroupAffiliation();
  if (theSubstitutionGroupAffiliation != null && theSubstitutionGroupAffiliation.getContainer() != null)
  {
   ((XSDConcreteComponentImpl)theSubstitutionGroupAffiliation).analyze();
  }

  XSDTypeDefinition theTypeDefinition = getTypeDefinition();
  if (!isTypeExplicit || theTypeDefinition == null)
  {
   XSDTypeDefinition newTypeDefinition =
    theSubstitutionGroupAffiliation == null || theSubstitutionGroupAffiliation.getTypeDefinition() == null ?
     getSchema().getSchemaForSchema().resolveTypeDefinition("anyType") :
     theSubstitutionGroupAffiliation.getTypeDefinition();
   if (newTypeDefinition != theTypeDefinition)
   {
    isTypeExplicit = false;
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 super.analyze();
}

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

protected void handleAnalysis()
{
 if (!isElementDeclarationReference())
 {
  XSDElementDeclaration theSubstitutionGroupAffiliation = getSubstitutionGroupAffiliation();
  if (theSubstitutionGroupAffiliation != null && theSubstitutionGroupAffiliation.getContainer() != null)
  {
   ((XSDConcreteComponentImpl)theSubstitutionGroupAffiliation).analyze();
  }

  XSDTypeDefinition theTypeDefinition = getTypeDefinition();
  if (!isTypeExplicit || theTypeDefinition == null)
  {
   XSDTypeDefinition newTypeDefinition =
    theSubstitutionGroupAffiliation == null || theSubstitutionGroupAffiliation.getTypeDefinition() == null ?
     getSchema().getSchemaForSchema().resolveTypeDefinition("anyType") :
     theSubstitutionGroupAffiliation.getTypeDefinition();
   if (newTypeDefinition != theTypeDefinition)
   {
    isTypeExplicit = false;
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 super.analyze();
}

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

if (elem.getContainer() != null)
  Adapter adap = XSDAdapterFactory.getInstance().adapt(elem.getContainer());
  if (adap instanceof XSDParticleAdapter)
Adapter adap = XSDAdapterFactory.getInstance().adapt(elem.getContainer());
if (adap instanceof XSDParticleAdapter)

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

XSDConcreteComponent container = xsdElementDeclaration.getContainer();
if (container instanceof XSDParticle)

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

if (theResolvedElementDeclaration.getContainer() == null)
if (substitutionGroupAffiliation != null)
 if (substitutionGroupAffiliation.getResolvedElementDeclaration().getContainer() == null)

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

if (theResolvedElementDeclaration.getContainer() == null)
if (substitutionGroupAffiliation != null)
 if (substitutionGroupAffiliation.getResolvedElementDeclaration().getContainer() == null)

相关文章

微信公众号

最新文章

更多

XSDElementDeclaration类方法