Package org.apache.xerces.impl.xs.util

Examples of org.apache.xerces.impl.xs.util.XSObjectListImpl


        XSElementDeclaration[] subGroup;
        for (int i = 0; i < len; i++) {
            head = (XSElementDecl)elements.item(i);
            subGroup = sgHandler.getSubstitutionGroup(head);
            subGroupMap.put(head, subGroup.length > 0 ?
                    new XSObjectListImpl(subGroup, subGroup.length) : XSObjectListImpl.EMPTY_LIST);
        }
        return subGroupMap;
    }
View Full Code Here


        SubstitutionGroupHandler sgHandler = new SubstitutionGroupHandler(null);
        for (int i = 0 ; i < fGrammarCount; i++) {
            sgHandler.addSubstitutionGroup(fGrammarList[i].getSubstitutionGroups());
        }

        final XSObjectListImpl elements = getGlobalElements();
        final int len = elements.getLength();
        final SymbolHash subGroupMap = new SymbolHash(len*2);
        XSElementDecl head;
        XSElementDeclaration[] subGroup;
        for (int i = 0; i < len; i++) {
            head = (XSElementDecl)elements.item(i);
            subGroup = sgHandler.getSubstitutionGroup(head);
            subGroupMap.put(head, subGroup.length > 0 ?
                    new XSObjectListImpl(subGroup, subGroup.length) : XSObjectListImpl.EMPTY_LIST);
        }
        return subGroupMap;
    }
View Full Code Here

        for (int i = 0; i < fGrammarCount; i++) {
            tables[i].getValues(components, start);
            start += tables[i].getLength();
        }

        return new XSObjectListImpl(components, length);
    }
View Full Code Here

            if (currGrammar.fNumAnnotations > 0) {
                System.arraycopy(currGrammar.fAnnotations, 0, annotations, currPos, currGrammar.fNumAnnotations);
                currPos += currGrammar.fNumAnnotations;
            }
        }
        fAnnotations = new XSObjectListImpl(annotations, annotations.length);
        return fAnnotations;
    }
View Full Code Here

   * non-empty sequence of simple type definitions) is available,
   * otherwise an empty <code>XSObjectList</code>.
   */
  public XSObjectList getMemberTypes() {
    if (fVariety == VARIETY_UNION) {
      return new XSObjectListImpl(fMemberTypes, fMemberTypes.length);
    }
    else {
      return XSObjectListImpl.EMPTY_LIST;
    }
  }
View Full Code Here

              fMinInclusive.toString(),
              (fFixedFacet & FACET_MININCLUSIVE) != 0,
              minInclusiveAnnotation);
        count++;
      }
      fFacets = new XSObjectListImpl(facets, count);
    }
    return (fFacets != null) ? fFacets : XSObjectListImpl.EMPTY_LIST;
  }
View Full Code Here

              FACET_ENUMERATION,
              this.getLexicalEnumeration(),
              enumerationAnnotations);
        count++;
      }
      fMultiValueFacets = new XSObjectListImpl(facets, count);
    }
    return (fMultiValueFacets != null) ?
        fMultiValueFacets : XSObjectListImpl.EMPTY_LIST;
  }
View Full Code Here

            this.kind = kind;
            this.value = value;
            this.fixed = fixed;
           
            if (annotation != null) {
                this.annotations = new XSObjectListImpl();
                ((XSObjectListImpl)this.annotations).add(annotation);
            }
            else {
                this.annotations =  XSObjectListImpl.EMPTY_LIST;
            }
View Full Code Here

        group.fCompositor = XSModelGroupImpl.MODELGROUP_ALL;
        group.fParticleCount = fPArray.getParticleCount();
        group.fParticles = fPArray.popContext();
        XSObjectList annotations;
        if (annotation != null) {
            annotations = new XSObjectListImpl();
            ((XSObjectListImpl)annotations).add (annotation);
        } else {
            annotations = XSObjectListImpl.EMPTY_LIST;
        }
        group.fAnnotations = annotations;
View Full Code Here

        group.fCompositor = choice ? XSModelGroupImpl.MODELGROUP_CHOICE : XSModelGroupImpl.MODELGROUP_SEQUENCE;
        group.fParticleCount = fPArray.getParticleCount();
        group.fParticles = fPArray.popContext();
        XSObjectList annotations;
        if (annotation != null) {
            annotations = new XSObjectListImpl();
            ((XSObjectListImpl)annotations).add (annotation);
        } else {
            annotations = XSObjectListImpl.EMPTY_LIST;
        }
        group.fAnnotations = annotations;
View Full Code Here

TOP

Related Classes of org.apache.xerces.impl.xs.util.XSObjectListImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.