Examples of toJCRValue()


Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

                    // current namespace context of xml document
                    InternalValue ival =
                            InternalValue.create(serValue, targetType, nsContext);
                    // convert InternalValue to Value using this
                    // session's namespace mappings
                    va[i] = ival.toJCRValue(session.getNamespaceResolver());
                } else if (targetType == PropertyType.BINARY) {
                    try {
                        if (tv.length() < 0x10000) {
                            // < 65kb: deserialize BINARY type using String
                            va[i] = ValueHelper.deserialize(tv.retrieve(), targetType, false);
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        }

        PropertyState state = (PropertyState) getItemState();
        try {
            InternalValue val = state.getValues()[0];
            return val.toJCRValue(session.getNamespaceResolver());
        } catch (RepositoryException e) {
            throw e;
        } catch (Exception e) {
            String msg = "Internal error while retrieving value of "
                    + safeGetJCRPath();
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        int type = val.getType();
        if (type == PropertyType.LONG) {
            return ((Long) val.internalValue()).longValue();
        }
        // not a LONG value, delegate conversion to Value object
        return val.toJCRValue(session.getNamespaceResolver()).getLong();
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        int type = val.getType();
        if (type == PropertyType.DOUBLE) {
            return ((Double) val.internalValue()).doubleValue();
        }
        // not a DOUBLE value, delegate conversion to Value object
        return val.toJCRValue(session.getNamespaceResolver()).getDouble();
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        int type = val.getType();
        if (type == PropertyType.DATE) {
            return (Calendar) val.internalValue();
        }
        // not a DATE value, delegate conversion to Value object
        return val.toJCRValue(session.getNamespaceResolver()).getDate();
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        int type = val.getType();
        if (type == PropertyType.BOOLEAN) {
            return ((Boolean) val.internalValue()).booleanValue();
        }
        // not a BOOLEAN value, delegate conversion to Value object
        return val.toJCRValue(session.getNamespaceResolver()).getBoolean();
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.apache.jackrabbit.core.value.InternalValue.toJCRValue()

        for (Iterator it = eventState.getInfo().entrySet().iterator(); it.hasNext(); ) {
            Map.Entry entry = (Map.Entry) it.next();
            InternalValue value = (InternalValue) entry.getValue();
            String strValue = null;
            if (value != null) {
                strValue = value.toJCRValue(session).getString();
            }
            info.put(entry.getKey(), strValue);
        }
        return info;
    }
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.