Package org.jaxen.util

Examples of org.jaxen.util.SingletonList


        if ( docNode == null )
        {
            return Collections.EMPTY_LIST;
        }

        List list = new SingletonList(docNode);

        absContext.setNodeSet( list );

        return super.evaluate( absContext );
    }
View Full Code Here


        if ( obj instanceof List )
        {
            return (List) obj;
        }

        return new SingletonList(obj);
    }
View Full Code Here

            }
        }
       
        if (filters != null)
        {
            List list = new SingletonList(node);

            context.setNodeSet( list );
           
            // XXXX: filters aren't positional, so should we clone context?
View Full Code Here

        {
            fullContext.setNodeSet( (List) node );
        }
        else
        {
            List list = new SingletonList(node);

            fullContext.setNodeSet( list );
        }

        return fullContext;
View Full Code Here

        }



        List list = new SingletonList(docNode);



        absContext.setNodeSet( list );
View Full Code Here

        if ( obj instanceof List )
        {
            return (List) obj;
        }

        return new SingletonList(obj);
    }
View Full Code Here

                new ContextSupport(baseContextSupport.getNamespaceContext(),
                                   new SynapseXPathFunctionContext(baseContextSupport.getFunctionContext(), synCtx),
                                   new SynapseXPathVariableContext(baseContextSupport.getVariableContext(), synCtx),
                                   baseContextSupport.getNavigator());
            Context context = new Context(contextSupport);
            context.setNodeSet(new SingletonList(synCtx.getEnvelope()));
            return context;
        } else if (obj instanceof SOAPEnvelope) {
            SOAPEnvelope env = (SOAPEnvelope)obj;
            ContextSupport baseContextSupport = getContextSupport();
            ContextSupport contextSupport =
                new ContextSupport(baseContextSupport.getNamespaceContext(),
                                   baseContextSupport.getFunctionContext(),
                                   new SynapseXPathVariableContext(baseContextSupport.getVariableContext(), env),
                                   baseContextSupport.getNavigator());
            Context context = new Context(contextSupport);
            context.setNodeSet(new SingletonList(env));
            return context;
        } else {
            return super.getContext(obj);
        }
    }
View Full Code Here

TOP

Related Classes of org.jaxen.util.SingletonList

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.