Examples of PrefixResolver


Examples of org.apache.xml.utils.PrefixResolver

    int nPredicates = getPredicateCount();
    // System.out.println("nPredicates: "+nPredicates);
    if (nPredicates == 0)
      return true;

    PrefixResolver savedResolver = xctxt.getNamespaceContext();

    try
    {
      m_predicateIndex = 0;
      xctxt.pushSubContextList(this);
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

                          boolean isTopLevel,
                          int stackFrame,
                          Expression expr )
    throws org.apache.xml.utils.WrappedRuntimeException
  {
    PrefixResolver savedResolver = xctxt.getNamespaceContext();
    XNodeSet result = null;

    try
    {
      xctxt.pushCurrentNode(context);
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

            String ref = propElem.getAttribute( "ref" );
            StringTokenizer tokenizer = new StringTokenizer( ref, ":" );
            String propPrefix = tokenizer.nextToken();
            String propLocalName = tokenizer.nextToken();
            // TODO: write our own prefix resolver to eliminate dep on Xalan
            PrefixResolver prefixResolver = new PrefixResolverDefault( schemaElem );
            String propNamespace = prefixResolver.getNamespaceForPrefix( propPrefix );
            propNames.add( new QName( propNamespace, propLocalName, propPrefix ) );
        }

        return (QName[]) propNames.toArray( new QName[0] );
    }
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

            throw new InvalidWsrfWsdlException( "Value for xsd:element 'ref' attribute must be qualified via a namespace prefix." );
        }
        String propPrefix = tokenizer.nextToken();
        String propLocalName = tokenizer.nextToken();
        // TODO: write our own prefix resolver to eliminate dep on Xalan
        PrefixResolver prefixResolver = new PrefixResolverDefault( schemaElem );
        String propNamespace = prefixResolver.getNamespaceForPrefix( propPrefix );
        if ( propNamespace == null )
        {
           throw new InvalidWsrfWsdlException( "Unable to resolve prefix '" + propPrefix + "' in xsd:element 'ref' attribute value." );
        }
        QName propName = new QName( propNamespace, propLocalName, propPrefix );
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

   public XObject execute( Node   props_doc_node,
                           String expr_string )
   throws Exception
   {
      XPathContext   xpathSupport   = new XPathContext(  );
      PrefixResolver prefixResolver =
         new PrefixResolverDefault( ( props_doc_node.getNodeType(  ) == Node.DOCUMENT_NODE )
                                    ? ( (Document) props_doc_node ).getDocumentElement(  ) : props_doc_node );

      // Create the XPath object.
      XPath xpath = null;
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

                    }
                    continue;
                }

                XPathContext xpc = new XPathContext();
                PrefixResolver pfx;
                if (pr == null) {
                    pfx = new PrefixResolverDefault(d.getDocumentElement());
                    xp = new XPath(query, null, pfx, XPath.SELECT, errors);
                } else {
                    pfx = pr;
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

        }
    }
    
    protected String textValueOfXPath(Node node, String xpath) throws TransformerException {
        CachedXPathAPI cachedXPathAPI = new CachedXPathAPI();
        XObject list = cachedXPathAPI.eval(node, xpath, new PrefixResolver() {
            public String getNamespaceForPrefix(String prefix) {
                if ("jbi".equals(prefix)) {
                    return "http://java.sun.com/xml/ns/jbi/management-message";
                }
                return null;
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

        if (component == null) {
            throw new MessagingException("Could not find a component on which to perform the service invocation!");
        }

        TransformerImpl transformer = context.getTransformer();
        PrefixResolver namespaceContext = transformer.getXPathContext().getNamespaceContext();

        QName service = getQNameAttribute(namespaceContext, element, "service");
        QName interfaceName = getQNameAttribute(namespaceContext, element, "interface");
        QName operation = getQNameAttribute(namespaceContext, element, "operation");
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

        if (component == null) {
            throw new MessagingException("Could not find a component on which to perform the service invocation!");
        }

        TransformerImpl transformer = context.getTransformer();
        PrefixResolver namespaceContext = transformer.getXPathContext().getNamespaceContext();

        QName service = getQNameAttribute(namespaceContext, element, "service");
        QName interfaceName = getQNameAttribute(namespaceContext, element, "interface");
        QName operation = getQNameAttribute(namespaceContext, element, "operation");
View Full Code Here

Examples of org.apache.xml.utils.PrefixResolver

        if (component == null) {
            throw new MessagingException("Could not find a component on which to perform the service invocation!");
        }

        TransformerImpl transformer = context.getTransformer();
        PrefixResolver namespaceContext = transformer.getXPathContext().getNamespaceContext();

        QName service = getQNameAttribute(namespaceContext, element, "service");
        QName interfaceName = getQNameAttribute(namespaceContext, element, "interface");
        QName operation = getQNameAttribute(namespaceContext, element, "operation");
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.