Package org.apache.commons.jxpath

Examples of org.apache.commons.jxpath.AbstractFactory.createObject()


    public NodePointer createChild(JXPathContext context, QName name, int index){
        // Ignore the name passed to us, use our own data
        Object collection = getBaseValue();
        if (collection == null){
            AbstractFactory factory = getAbstractFactory(context);
            if (!factory.createObject(context, this, getBean(), getPropertyName(), 0)){
                throw new JXPathException("Factory could not create an object for path: " + asPath());
            }
            collection = getBaseValue();
        }
View Full Code Here


    public NodePointer createPath(JXPathContext context){
        if (getNodeValue() == null){
            AbstractFactory factory = getAbstractFactory(context);
            int inx = (index == WHOLE_COLLECTION ? 0 : index);
            if (!factory.createObject(context, this, getBean(), getPropertyName(), inx)){
                throw new JXPathException("Factory could not create an object for path: " + asPath());
            }
        }
        return this;
    }
View Full Code Here

    public NodePointer createPath(JXPathContext context) {
        if (getImmediateNode() == null) {
            AbstractFactory factory = getAbstractFactory(context);
            int inx = (index == WHOLE_COLLECTION ? 0 : index);
            boolean success =
                factory.createObject(
                    context,
                    this,
                    getBean(),
                    getPropertyName(),
                    inx);
View Full Code Here

        // Ignore the name passed to us, use our own data
        Object collection = getBaseValue();
        if (collection == null) {
            AbstractFactory factory = getAbstractFactory(context);
            boolean success =
                factory.createObject(
                    context,
                    this,
                    getBean(),
                    getPropertyName(),
                    0);
View Full Code Here

    {
        Object collection = createCollection(context, index);
        if (!isActual() || (index != 0 && index != WHOLE_COLLECTION)) {
            AbstractFactory factory = getAbstractFactory(context);
            boolean success =
                factory.createObject(
                    context,
                    this,
                    collection,
                    getName().toString(),
                    index);
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.