Package org.jboss.util.xml

Examples of org.jboss.util.xml.JBossEntityResolver


         // Will currently fail because some J2EE1.4/W3C schemas
         // are still lacking.
         //docBuilderFactory.setAttribute
         //   ("http://java.sun.com/xml/jaxp/properties/schemaLanguage","http://www.w3.org/2001/XMLSchema");
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         JBossEntityResolver lr = new JBossEntityResolver();
         LocalErrorHandler eh = new LocalErrorHandler( inPath, lr );
         docBuilder.setEntityResolver(lr);
         docBuilder.setErrorHandler(eh );

         Document doc = docBuilder.parse(is);
View Full Code Here


   /** Namespace to processAnnotations flag used with the XsdBinder.bind call */
   private Map<String, Boolean> schemaParseAnnotationsByUri = Collections.emptyMap();

   public DefaultSchemaResolver()
   {
      this(new JBossEntityResolver());
   }
View Full Code Here

   private Map<String, Boolean> schemaParseAnnotationsByUri = Collections.emptyMap();
   private Map<String, SchemaBindingInitializer> schemaInitByUri = Collections.emptyMap();

   protected AbstractMutableSchemaResolver(Logger log)
   {
      this(log, new JBossEntityResolver());
   }
View Full Code Here

               // fall through, use the default value
            }

            //supply it with our dtd locally.
            reader.setEntityResolver(new JBossEntityResolver());

            // get the element and start parsing...
            Document doc = reader.read(url);
            element = doc.getRootElement();
            DocumentType type = doc.getDocType();
View Full Code Here

      }

      delegateHandler = new DelegatingContentHandler();
      reader.setContentHandler(delegateHandler);
      reader.setErrorHandler(MetaDataErrorHandler.INSTANCE);
      reader.setEntityResolver(new JBossEntityResolver());
      // LexicalHandler
      try
      {
         reader.setProperty("http://xml.org/sax/properties/lexical-handler", delegateHandler);
      }
View Full Code Here

   /** Namespace to processAnnotations flag used with the XsdBinder.bind call */
   private Map<String, Boolean> schemaParseAnnotationsByUri = Collections.emptyMap();

   public DefaultSchemaResolver()
   {
      this(new JBossEntityResolver());
   }
View Full Code Here

        if (metaTmpFile == null)
            throw new IOException("Deployment plan does not contain an entry: " + DeploymentMetaData.ENTRY_NAME);

        try {
            SAXReader reader = new SAXReader();
            reader.setEntityResolver(new JBossEntityResolver());

            Document metaDoc = reader.read(metaTmpFile);
            metaData = new DeploymentMetaData(metaDoc);
            log.debug(DeploymentMetaData.ENTRY_NAME + "\n" + metaData.toXMLString());
        } catch (Exception e) {
View Full Code Here

        if (metaTmpFile == null)
            throw new IOException("Deployment plan does not contain an entry: " + DeploymentMetaData.ENTRY_NAME);

        try {
            SAXReader reader = new SAXReader();
            reader.setEntityResolver(new JBossEntityResolver());

            Document metaDoc = reader.read(metaTmpFile);
            metaData = new DeploymentMetaData(metaDoc);
            log.debug(DeploymentMetaData.ENTRY_NAME + "\n" + metaData.toXMLString());
        } catch (Exception e) {
View Full Code Here

      }

      delegateHandler = new DelegatingContentHandler();
      reader.setContentHandler(delegateHandler);
      reader.setErrorHandler(MetaDataErrorHandler.INSTANCE);
      reader.setEntityResolver(new JBossEntityResolver());
      // LexicalHandler
      try
      {
         reader.setProperty("http://xml.org/sax/properties/lexical-handler", delegateHandler);
      }
View Full Code Here

   /** Namespace to processAnnotations flag used with the XsdBinder.bind call */
   private Map<String, Boolean> schemaParseAnnotationsByUri = Collections.emptyMap();

   public DefaultSchemaResolver()
   {
      this(new JBossEntityResolver());
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.xml.JBossEntityResolver

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.