Package org.apache.commons.jxpath

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


    {
        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


        // 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

    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

        int index) {
        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

        // 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

    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

    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());
            }
            baseValue = UNINITIALIZED;
View Full Code Here

            throw new JXPathException("Index is less than 1: " + asPath());
        }

        if (index >= getLength()){
            AbstractFactory factory = getAbstractFactory(context);
            if (!factory.createObject(context, this, getBean(),
                    getPropertyName(), index)){
                throw new JXPathException("Factory could not create path " +
                        asPath());
            }
        }
View Full Code Here

    public NodePointer createChild(JXPathContext context, QName name, int index){
        Object collection = createCollection(context, index);
        if (!isActual() || (index != 0 && index != WHOLE_COLLECTION)){
            AbstractFactory factory = getAbstractFactory(context);
            // Ignore the name passed as a parameter, pass the name of the variable instead
            if (!factory.createObject(context, this, collection, getName().toString(), index)){
                throw new JXPathException("Factory could not create object path: " + asPath());
            }
            setIndex(index);
        }
        return this;
View Full Code Here

        }
        else {
            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

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.