Examples of PJConverter


Examples of org.pdf4j.saxon.expr.PJConverter

     */

    public PJConverter getNodeListCreator(Object node) {
        if (node==null || node instanceof Node || node instanceof DOMSource ||
                (node instanceof VirtualNode && ((VirtualNode)node).getUnderlyingNode() instanceof Node)) {
            return new PJConverter() {
                public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
                    return convertXPathValueToObject(Value.asValue(value), NodeList.class, context);
                }
            };
        } else {
View Full Code Here

Examples of org.pdf4j.saxon.expr.PJConverter

        return XPathConstants.DOM_OBJECT_MODEL;
    }

    public PJConverter getPJConverter(Class targetClass) {
        if (NodeOverNodeInfo.class.isAssignableFrom(targetClass)) {
            return new PJConverter() {
                public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
                    return convertXPathValueToObject(value, targetClass, context);
                }
            };
        } else if (NodeList.class.isAssignableFrom(targetClass)) {
            return new PJConverter() {
                public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
                    return convertXPathValueToObject(value, targetClass, context);
                }
            };
        } else {
View Full Code Here

Examples of org.pdf4j.saxon.expr.PJConverter

        return NamespaceConstant.OBJECT_MODEL_DOT_NET_DOM;
    }

    public PJConverter getPJConverter(Class targetClass) {
        if (isRecognizedNodeClass(targetClass)) {
            return new PJConverter() {
                public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
                    return null; //TODO:FIXME!
                    //return convertXPathValueToObject(Value.asValue(value), targetClass, context);
                }
            };
View Full Code Here

Examples of org.pdf4j.saxon.expr.PJConverter

        return NamespaceConstant.OBJECT_MODEL_XOM;
    }

    public PJConverter getPJConverter(Class targetClass) {
        if (isRecognizedNodeClass(targetClass)) {
            return new PJConverter() {
                public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
                    return convertXPathValueToObject(Value.asValue(value), targetClass, context);
                }
            };
        } else {
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.