Package org.apache.xerces.validators.schema

Examples of org.apache.xerces.validators.schema.SubstitutionGroupComparator


   } // <init>(StringPool,XMLErrorReporter,DefaultEntityHandler,XMLDocumentScanner)

   public void setGrammarResolver(GrammarResolver grammarResolver){
      fGrammarResolver = grammarResolver;

      fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter);
      ElementWildcard.setErrReporter(fStringPool, fErrorReporter);

        if (fValidating) { //optimization -el
      initDataTypeValidators();
   }
View Full Code Here


   private XMLContentModel getElementContentModel(int elementIndex) throws Exception {
      XMLContentModel contentModel = null;
      if ( elementIndex > -1) {
         if ( fGrammar.getElementDecl(elementIndex,fTempElementDecl) ) {
             if (fSGComparator == null) {
                 fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter);
             }
            contentModel = fGrammar.getElementContentModel(elementIndex, fSGComparator);
         }
      }
      //return fGrammar.getElementContentModel(elementIndex);
View Full Code Here

   private XMLContentModel getElementContentModel(int elementIndex) throws Exception {
      XMLContentModel contentModel = null;
      if ( elementIndex > -1) {
         if ( fGrammar.getElementDecl(elementIndex,fTempElementDecl) ) {
             if (fSGComparator == null) {
                 fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter);
             }
            contentModel = fGrammar.getElementContentModel(elementIndex, fSGComparator);
         }
      }
      //return fGrammar.getElementContentModel(elementIndex);
View Full Code Here

   } // <init>(StringPool,XMLErrorReporter,DefaultEntityHandler,XMLDocumentScanner)

   public void setGrammarResolver(GrammarResolver grammarResolver){
      fGrammarResolver = grammarResolver;

      fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter);

        if (fValidating) { //optimization -el
      initDataTypeValidators();
   }
View Full Code Here

         try {
            cmElem = getElementContentModel(elementIndex);
            int result = cmElem.validateContent(children, childOffset, childCount);
            if (result != -1 && fGrammarIsSchemaGrammar) {
               // REVISIT: not optimized for performance,
               SubstitutionGroupComparator comparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool);
               cmElem.setSubstitutionGroupComparator(comparator);
               result = cmElem.validateContentSpecial(children, childOffset, childCount);
            }
            return result;
         } catch (CMException excToCatch) {
View Full Code Here

         try {
            cmElem = getElementContentModel(elementIndex);
            int result = cmElem.validateContent(children, childOffset, childCount);
            if (result != -1 && fGrammarIsSchemaGrammar) {
               // REVISIT: not optimized for performance,
               SubstitutionGroupComparator comparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool);
               cmElem.setSubstitutionGroupComparator(comparator);
               result = cmElem.validateContentSpecial(children, childOffset, childCount);
            }
            return result;
         } catch (CMException excToCatch) {
View Full Code Here

   private XMLContentModel getElementContentModel(int elementIndex) throws Exception {
      XMLContentModel contentModel = null;
      if ( elementIndex > -1) {
         if ( fGrammar.getElementDecl(elementIndex,fTempElementDecl) ) {
             if (fSGComparator == null) {
                 fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter);
             }
            contentModel = fGrammar.getElementContentModel(elementIndex, fSGComparator);
         }
      }
      //return fGrammar.getElementContentModel(elementIndex);
View Full Code Here

TOP

Related Classes of org.apache.xerces.validators.schema.SubstitutionGroupComparator

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.