Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.apache.xerces.parsers;
  
  import java.util.HashMap;
 
 {
   protected static final String ALLOW_UE_AND_NOTATION_EVENTS = "http://xml.org/sax/features/allow-dtd-events-after-endDTD";
   protected static final String XINCLUDE_FIXUP_BASE_URIS = "http://apache.org/xml/features/xinclude/fixup-base-uris";
   protected static final String XINCLUDE_FIXUP_LANGUAGE = "http://apache.org/xml/features/xinclude/fixup-language";
   protected static final String XINCLUDE_FEATURE = "http://apache.org/xml/features/xinclude";
   protected static final String XINCLUDE_HANDLER = "http://apache.org/xml/properties/internal/xinclude-handler";
   protected static final String NAMESPACE_CONTEXT = "http://apache.org/xml/properties/internal/namespace-context";
   protected boolean fXIncludeEnabled = false;
 
   {
     this(nullnullnull);
   }
 
   public XIncludeAwareParserConfiguration(SymbolTable paramSymbolTable)
   {
     this(paramSymbolTable, nullnull);
   }
 
   public XIncludeAwareParserConfiguration(SymbolTable paramSymbolTableXMLGrammarPool paramXMLGrammarPool)
   {
     this(paramSymbolTable, paramXMLGrammarPool, null);
   }
 
   public XIncludeAwareParserConfiguration(SymbolTable paramSymbolTableXMLGrammarPool paramXMLGrammarPoolXMLComponentManager paramXMLComponentManager)
   {
     super(paramSymbolTable, paramXMLGrammarPool, paramXMLComponentManager);
     String[] arrayOfString1 = { "http://xml.org/sax/features/allow-dtd-events-after-endDTD""http://apache.org/xml/features/xinclude/fixup-base-uris""http://apache.org/xml/features/xinclude/fixup-language" };
     addRecognizedFeatures(arrayOfString1);
     String[] arrayOfString2 = { "http://apache.org/xml/properties/internal/xinclude-handler""http://apache.org/xml/properties/internal/namespace-context" };
     addRecognizedProperties(arrayOfString2);
     setFeature("http://xml.org/sax/features/allow-dtd-events-after-endDTD"true);
     setFeature("http://apache.org/xml/features/xinclude/fixup-base-uris"true);
     setFeature("http://apache.org/xml/features/xinclude/fixup-language"true);
     this.fNonXIncludeNSContext = new NamespaceSupport();
     this.fCurrentNSContext = this.fNonXIncludeNSContext;
     setProperty("http://apache.org/xml/properties/internal/namespace-context"this.fNonXIncludeNSContext);
   }
 
   protected void configurePipeline()
   {
     super.configurePipeline();
     if (this.fXIncludeEnabled)
     {
       if (this.fXIncludeHandler == null)
       {
         this.fXIncludeHandler = new XIncludeHandler();
         setProperty("http://apache.org/xml/properties/internal/xinclude-handler"this.fXIncludeHandler);
         addCommonComponent(this.fXIncludeHandler);
         this.fXIncludeHandler.reset(this);
       }
       if (this.fCurrentNSContext != this.fXIncludeNSContext)
       {
         if (this.fXIncludeNSContext == null)
           this.fXIncludeNSContext = new XIncludeNamespaceSupport();
         this.fCurrentNSContext = this.fXIncludeNSContext;
         setProperty("http://apache.org/xml/properties/internal/namespace-context"this.fXIncludeNSContext);
       }
       this.fDTDScanner.setDTDHandler(this.fDTDProcessor);
       this.fDTDProcessor.setDTDSource(this.fDTDScanner);
       this.fDTDProcessor.setDTDHandler(this.fXIncludeHandler);
       this.fXIncludeHandler.setDTDSource(this.fDTDProcessor);
       this.fXIncludeHandler.setDTDHandler(this.fDTDHandler);
       if (this.fDTDHandler != null)
         this.fDTDHandler.setDTDSource(this.fXIncludeHandler);
       XMLDocumentSource localXMLDocumentSource = null;
       if (this.fFeatures.get("http://apache.org/xml/features/validation/schema") == Boolean.TRUE)
       {
         localXMLDocumentSource = this.fSchemaValidator.getDocumentSource();
       }
       else
       {
         localXMLDocumentSource = this.fLastComponent;
         this.fLastComponent = this.fXIncludeHandler;
      }
      XMLDocumentHandler localXMLDocumentHandler = localXMLDocumentSource.getDocumentHandler();
      localXMLDocumentSource.setDocumentHandler(this.fXIncludeHandler);
      this.fXIncludeHandler.setDocumentSource(localXMLDocumentSource);
      if (localXMLDocumentHandler != null)
      {
        this.fXIncludeHandler.setDocumentHandler(localXMLDocumentHandler);
        localXMLDocumentHandler.setDocumentSource(this.fXIncludeHandler);
      }
    }
    else if (this.fCurrentNSContext != this.fNonXIncludeNSContext)
    {
      this.fCurrentNSContext = this.fNonXIncludeNSContext;
      setProperty("http://apache.org/xml/properties/internal/namespace-context"this.fNonXIncludeNSContext);
    }
  }
  protected void configureXML11Pipeline()
  {
    super.configureXML11Pipeline();
    if (this.fXIncludeEnabled)
    {
      if (this.fXIncludeHandler == null)
      {
        this.fXIncludeHandler = new XIncludeHandler();
        setProperty("http://apache.org/xml/properties/internal/xinclude-handler"this.fXIncludeHandler);
        addCommonComponent(this.fXIncludeHandler);
        this.fXIncludeHandler.reset(this);
      }
      if (this.fCurrentNSContext != this.fXIncludeNSContext)
      {
        if (this.fXIncludeNSContext == null)
          this.fXIncludeNSContext = new XIncludeNamespaceSupport();
        this.fCurrentNSContext = this.fXIncludeNSContext;
        setProperty("http://apache.org/xml/properties/internal/namespace-context"this.fXIncludeNSContext);
      }
      this.fXML11DTDScanner.setDTDHandler(this.fXML11DTDProcessor);
      this.fXML11DTDProcessor.setDTDSource(this.fXML11DTDScanner);
      this.fXML11DTDProcessor.setDTDHandler(this.fXIncludeHandler);
      this.fXIncludeHandler.setDTDSource(this.fXML11DTDProcessor);
      this.fXIncludeHandler.setDTDHandler(this.fDTDHandler);
      if (this.fDTDHandler != null)
        this.fDTDHandler.setDTDSource(this.fXIncludeHandler);
      XMLDocumentSource localXMLDocumentSource = null;
      if (this.fFeatures.get("http://apache.org/xml/features/validation/schema") == Boolean.TRUE)
      {
        localXMLDocumentSource = this.fSchemaValidator.getDocumentSource();
      }
      else
      {
        localXMLDocumentSource = this.fLastComponent;
        this.fLastComponent = this.fXIncludeHandler;
      }
      XMLDocumentHandler localXMLDocumentHandler = localXMLDocumentSource.getDocumentHandler();
      localXMLDocumentSource.setDocumentHandler(this.fXIncludeHandler);
      this.fXIncludeHandler.setDocumentSource(localXMLDocumentSource);
      if (localXMLDocumentHandler != null)
      {
        this.fXIncludeHandler.setDocumentHandler(localXMLDocumentHandler);
        localXMLDocumentHandler.setDocumentSource(this.fXIncludeHandler);
      }
    }
    else if (this.fCurrentNSContext != this.fNonXIncludeNSContext)
    {
      this.fCurrentNSContext = this.fNonXIncludeNSContext;
      setProperty("http://apache.org/xml/properties/internal/namespace-context"this.fNonXIncludeNSContext);
    }
  }
  public boolean getFeature(String paramString)
  {
    if (paramString.equals("http://apache.org/xml/features/internal/parser-settings"))
      return this.fConfigUpdated;
    if (paramString.equals("http://apache.org/xml/features/xinclude"))
      return this.fXIncludeEnabled;
    return super.getFeature0(paramString);
  }
  public void setFeature(String paramStringboolean paramBoolean)
  {
    if (paramString.equals("http://apache.org/xml/features/xinclude"))
    {
      this.fXIncludeEnabled = paramBoolean;
      this.fConfigUpdated = true;
      return;
    }
    super.setFeature(paramString, paramBoolean);
  }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xerces.parsers.XIncludeAwareParserConfiguration
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X