Package net.fortytwo.ripple.model

Examples of net.fortytwo.ripple.model.RippleList.push()


            return mc.list();
        }

        RippleList l = mc.list().push(values[0]);
        for (int i = 1; i < values.length; i++) {
            l = l.push(values[i]);
        }

        return l;
    }
View Full Code Here


        stack = stack.getRest();

        String result = mc.toString(s).toUpperCase();

        solutions.put(
                stack.push(StringLibrary.value(result, mc, s)));
    }
}
View Full Code Here

        } else if (o instanceof JSONArray) {
            JSONArray a = (JSONArray) o;
            RippleList l = mc.list();
            for (int i = a.length() - 1; i >= 0; i--) {
                try {
                    l = l.push(toRippleValue(a.get(i), mc));
                } catch (JSONException e) {
                    throw new RippleException(e);
                }
            }
            return l;
View Full Code Here

        stack = stack.getRest();

        if (x instanceof KeyValueValue) {
            RippleValue result = ((KeyValueValue) x).getValue(key, mc);
            solutions.put(
                    stack.push(result));
        } else {
            throw new RippleException("argument is not a JSON value: " + x);
        }
    }
}
View Full Code Here

        stack = stack.getRest();

        result = mc.valueOf(mc.getComparator().compare(a, b) <= 0);

        solutions.put(
                stack.push(result));
    }
}
View Full Code Here

        if (v instanceof Literal) {
            result = ((Literal) v).getLanguage();

            if (null != result) {
                solutions.put(
                        stack.push(mc.valueOf(result)));
            }
        }
    }
}
View Full Code Here

        stack = stack.getRest();

        result = mc.valueOf(mc.getComparator().compare(a, b) >= 0);

        solutions.put(
                stack.push(result));
    }
}
View Full Code Here

        stack = stack.getRest();

        result = mc.valueOf(mc.getComparator().compare(a, b) > 0);

        solutions.put(
                stack.push(result));
    }
}
View Full Code Here

        v = stack.getFirst();
        stack = stack.getRest();

        solutions.put(
                stack.push(mc.valueOf(mc.toString(v), XMLSchema.STRING)));
    }
}
View Full Code Here

        if (v instanceof Literal) {
            URI type = ((Literal) v).getDatatype();

            if (null != type) {
                solutions.put(
                        stack.push(new RDFValue(type)));
            }
        }
    }
}
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.