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

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

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

XSDParticle.isSetMaxOccurs介绍

[英]Returns whether the value of the ' org.eclipse.xsd.XSDParticle#getMaxOccurs' attribute is set.
[中]返回“org”的值。日食xsd。设置了XSDParticle#getMaxOccurs属性。

代码示例

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

public void visit(XSDParticle particle) {
    XSDElementDeclaration decl = (XSDElementDeclaration) particle.getContent();
    if (decl.isElementDeclarationReference()) {
      decl = decl.getResolvedElementDeclaration();
    }
    if (decl == fElement) {
      if (particle.isSetMaxOccurs()) {
        maxOccurs.add(Integer.valueOf(particle.getMaxOccurs()));
      } else if (particle.getContainer() instanceof XSDModelGroup
          && particle.getContainer().getContainer()
              instanceof XSDParticle) {
        particle = (XSDParticle) particle.getContainer().getContainer();
        maxOccurs.add(Integer.valueOf(particle.getMaxOccurs()));
      } else {
        maxOccurs.add(1);
      }
    }
  }
};

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

if (particle.isSetMaxOccurs()) {
  maxOccurs = particle.getMaxOccurs();
} else {
          (XSDParticle) group.eContainer();
      if (cParticle.isSetMaxOccurs()) {
        maxOccurs = cParticle.getMaxOccurs();

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

public static int getMaxOccurs(XSDConcreteComponent component)
{
 int maxOccur = -2;
 if (component != null)
 {
  Object o = component.getContainer();
  if (o instanceof XSDParticle)
  {
   if (((XSDParticle) o).isSetMaxOccurs())
   {
    try
    {
     maxOccur = ((XSDParticle) o).getMaxOccurs();
    }
    catch (Exception e)
    {
    }
   }
  }
 }
 return maxOccur;
}

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

if( particle.isSetMaxOccurs() ) {
  maxOccurs = particle.getMaxOccurs();
    if ( group.eContainer() instanceof XSDParticle ) {
      XSDParticle cParticle = (XSDParticle) group.eContainer();
      if ( cParticle.isSetMaxOccurs() ) {
        maxOccurs = cParticle.getMaxOccurs();

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

if (particle.isSetMaxOccurs()) {
  maxOccurs = particle.getMaxOccurs();
} else {
      XSDParticle cParticle = (XSDParticle) group.eContainer();
      if (cParticle.isSetMaxOccurs()) {
        maxOccurs = cParticle.getMaxOccurs();

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

if (particle.isSetMaxOccurs()) {
  maxOccurs = particle.getMaxOccurs();
} else {
      XSDParticle cParticle = (XSDParticle) group.eContainer();
      if (cParticle.isSetMaxOccurs()) {
        maxOccurs = cParticle.getMaxOccurs();

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

if (parentParticle.isSetMaxOccurs()) {
 particle.setMaxOccurs(parentParticle.getMaxOccurs());
 parentParticle.unsetMaxOccurs();

相关文章