Package org.apache.xerces.impl.xs

Examples of org.apache.xerces.impl.xs.SchemaGrammar.addAnnotation()


        localElement4 = DOMUtil.getFirstChildElement(localElement3);
        if (localElement4 != null)
        {
          str5 = DOMUtil.getLocalName(localElement4);
          if (str5.equals(SchemaSymbols.ELT_ANNOTATION))
            localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseAnnotationDecl(localElement4, localObject1, true, localXSDocumentInfo));
          else
            reportSchemaError("s4s-elt-must-match.1", new Object[] { str4, "annotation?", str5 }, localElement3);
          if (DOMUtil.getNextSiblingElement(localElement4) != null)
            reportSchemaError("s4s-elt-must-match.1", new Object[] { str4, "annotation?", DOMUtil.getLocalName(DOMUtil.getNextSiblingElement(localElement4)) }, localElement3);
        }
View Full Code Here


        }
        else
        {
          str5 = DOMUtil.getSyntheticAnnotation(localElement3);
          if (str5 != null)
            localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseSyntheticAnnotation(localElement3, str5, localObject1, true, localXSDocumentInfo));
        }
        this.fAttributeChecker.returnAttrArray(localObject1, localXSDocumentInfo);
        if (localXSDocumentInfo.isAllowedNS(str2))
        {
          if (!this.fHonourAllSchemaLocations)
View Full Code Here

          localElement4 = DOMUtil.getFirstChildElement(localElement3);
          if (localElement4 != null)
          {
            str5 = DOMUtil.getLocalName(localElement4);
            if (str5.equals(SchemaSymbols.ELT_ANNOTATION))
              localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseAnnotationDecl(localElement4, localObject1, true, localXSDocumentInfo));
            else
              reportSchemaError("s4s-elt-must-match.1", new Object[] { str4, "annotation?", str5 }, localElement3);
            if (DOMUtil.getNextSiblingElement(localElement4) != null)
              reportSchemaError("s4s-elt-must-match.1", new Object[] { str4, "annotation?", DOMUtil.getLocalName(DOMUtil.getNextSiblingElement(localElement4)) }, localElement3);
          }
View Full Code Here

          }
          else
          {
            str5 = DOMUtil.getSyntheticAnnotation(localElement3);
            if (str5 != null)
              localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseSyntheticAnnotation(localElement3, str5, localObject1, true, localXSDocumentInfo));
          }
        }
        else
        {
          for (localElement4 = DOMUtil.getFirstChildElement(localElement3); localElement4 != null; localElement4 = DOMUtil.getNextSiblingElement(localElement4))
View Full Code Here

          for (localElement4 = DOMUtil.getFirstChildElement(localElement3); localElement4 != null; localElement4 = DOMUtil.getNextSiblingElement(localElement4))
          {
            str5 = DOMUtil.getLocalName(localElement4);
            if (str5.equals(SchemaSymbols.ELT_ANNOTATION))
            {
              localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseAnnotationDecl(localElement4, localObject1, true, localXSDocumentInfo));
              DOMUtil.setHidden(localElement4, this.fHiddenNodes);
            }
            else
            {
              localObject2 = DOMUtil.getSyntheticAnnotation(localElement3);
View Full Code Here

            else
            {
              localObject2 = DOMUtil.getSyntheticAnnotation(localElement3);
              if (localObject2 == null)
                continue;
              localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseSyntheticAnnotation(localElement3, (String)localObject2, localObject1, true, localXSDocumentInfo));
            }
          }
        }
        this.fAttributeChecker.returnAttrArray(localObject1, localXSDocumentInfo);
        if (str3 == null)
View Full Code Here

        {
          this.fSimpleTypeTraverser.traverseGlobal(localElement3, localXSDocumentInfo, localSchemaGrammar);
        }
        else if (((String)localObject).equals(SchemaSymbols.ELT_ANNOTATION))
        {
          localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseAnnotationDecl(localElement3, localXSDocumentInfo.getSchemaAttrs(), true, localXSDocumentInfo));
          i = 1;
        }
        else
        {
          reportSchemaError("s4s-elt-invalid-content.1", new Object[] { SchemaSymbols.ELT_SCHEMA, DOMUtil.getLocalName(localElement3) }, localElement3);
View Full Code Here

      }
      if (i == 0)
      {
        localObject = DOMUtil.getSyntheticAnnotation(localElement2);
        if (localObject != null)
          localSchemaGrammar.addAnnotation(this.fElementTraverser.traverseSyntheticAnnotation(localElement2, (String)localObject, localXSDocumentInfo.getSchemaAttrs(), true, localXSDocumentInfo));
      }
      if (paramArrayList != null)
      {
        localObject = localXSDocumentInfo.getAnnotations();
        if (localObject != null)
View Full Code Here

                }
                else if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) {
                    fSimpleTypeTraverser.traverseGlobal(globalComp, currSchemaDoc, currSG);
                }
                else if (componentType.equals(SchemaSymbols.ELT_ANNOTATION)) {
                    currSG.addAnnotation(fElementTraverser.traverseAnnotationDecl(globalComp, currSchemaDoc.getSchemaAttrs(), true, currSchemaDoc));
                    sawAnnotation = true;
                }
                else if (fSchemaVersion == Constants.SCHEMA_VERSION_1_1 && componentType.equals(SchemaSymbols.ELT_DEFAULTOPENCONTENT)) {
                    currSchemaDoc.fDefaultOpenContent = fComplexTypeTraverser.traverseOpenContent(globalComp, currSchemaDoc, currSG, true);
                }
View Full Code Here

            } // end for
           
            if (!sawAnnotation) {
                String text = DOMUtil.getSyntheticAnnotation(currRoot);
                if (text != null) {
                    currSG.addAnnotation(fElementTraverser.traverseSyntheticAnnotation(currRoot, text, currSchemaDoc.getSchemaAttrs(), true, currSchemaDoc));
                }
            }
           
            /** Collect annotation information for validation. **/
            if (annotationInfo != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.