Package org.apache.myfaces.trinidadinternal.share.xml

Examples of org.apache.myfaces.trinidadinternal.share.xml.ParseContextImpl


        "NULL_ARGUMENT"));
    }

    // Gather all of the the objects that we need for the parse
    ParserManager manager = _getDefaultParserManager();
    ParseContextImpl parseContext = new ParseContextImpl();

    // Parse it!
    return (StyleSheetDocument)XMLUtils.parseSource(parseContext,
                                                    xmlProvider,
                                                    manager,
View Full Code Here


    // Create the builder.
    TreeBuilder builder = new TreeBuilder(manager, expectedClass);

    // Set up the parse context
    ParseContextImpl parseContext = new ParseContextImpl();

    // Transfer properties from the ImageContext to the ParseContext
    ResourceBundle bundle = (ResourceBundle)context.getProperty(
                              ImageConstants.TECATE_NAMESPACE,
                              XMLConstants.RESOURCE_BUNDLE_PROPERTY);
    if (bundle != null)
    {
      parseContext.setProperty(ImageConstants.TECATE_NAMESPACE,
                               XMLConstants.RESOURCE_BUNDLE_PROPERTY,
                               bundle);

    }

    parseContext.setProperty(ImageConstants.TECATE_NAMESPACE,
                             XMLConstants.LOCALE_CONTEXT_PROPERTY,
                             context.getLocaleContext());

    // Parse it!
    return builder.parse(provider, source, parseContext);
View Full Code Here

      stream = connection.getInputStream();

      InputSource source = new InputSource(stream);
      source.setSystemId(capUrl.toExternalForm());

      ParseContextImpl pc = new ParseContextImpl ();
      pc.setProperty(NS_URI, __BASE_URL, capUrl);
      TreeBuilder builder =  new  TreeBuilder();
      return (CapabilitiesDocument) builder.parse(null, source, pc, parser);

    }
    catch (SAXException saxe)
View Full Code Here

    )
  {

     try
     {
        ParseContextImpl parseContext = new ParseContextImpl();
        // if this is a utility that isn't in this file, then I can't return a SkinStyleSheet.
        // I think instead this parseCSSSource should return a new instance of StyleSheetEntry.
        return (StyleSheetEntry)SkinStyleSheetParserUtils.parseCSSSource(
                                    parseContext,
                                    resolver,
View Full Code Here

      stream = connection.getInputStream();

      InputSource source = new InputSource(stream);
      source.setSystemId(srcUrl.toExternalForm());

      ParseContextImpl pc = new ParseContextImpl ();
      TreeBuilder builder =  new  TreeBuilder();
      return (Object[]) builder.parse(null, source, pc, parser);
    }
    catch (SAXException saxe)
    {
View Full Code Here

      input.setPublicId(configFile);

      SAXParserFactory factory = SAXParserFactory.newInstance();
      factory.setNamespaceAware(true);  
     
      ParseContextImpl context = new ParseContextImpl();

      // Set up the NameResolver if we have one
      if (resolver != null)
        XMLUtils.setResolver(context, resolver);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.share.xml.ParseContextImpl

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.