Package org.apache.jackrabbit.spi.commons.conversion

Examples of org.apache.jackrabbit.spi.commons.conversion.IllegalNameException


            Node n = childNodes.item(i);
            if (n.getNodeName().equals("include-property")) {
                PathBuilder builder = new PathBuilder();
                for (String element : Text.explode(getTextContent(n), '/')) {
                    if (element.equals("*")) {
                        throw new IllegalNameException("* not supported in include-property");
                    }
                    builder.addLast(resolver.getQName(element));
                }
                includes.add(new PropertyInclude(builder.getPath()));
            }
View Full Code Here


            if (n.getNodeName().equals("include-property")) {
                String[] elements = Text.explode(getTextContent(n), '/');
                PathBuilder builder = new PathBuilder();
                for (int j = 0; j < elements.length; j++) {
                    if (elements[j].equals("*")) {
                        throw new IllegalNameException("* not supported in include-property");
                    }
                    builder.addLast(resolver.getQName(elements[j]));
                }
                includes.add(new PropertyInclude(builder.getPath()));
            }
View Full Code Here

            if (n.getNodeName().equals("include-property")) {
                String[] elements = Text.explode(getTextContent(n), '/');
                PathBuilder builder = new PathBuilder();
                for (int j = 0; j < elements.length; j++) {
                    if (elements[j].equals("*")) {
                        throw new IllegalNameException("* not supported in include-property");
                    }
                    builder.addLast(resolver.getQName(elements[j]));
                }
                includes.add(new PropertyInclude(builder.getPath()));
            }
View Full Code Here

        try {
            return nameResolver.getJCRName(qName);
        } catch (NamespaceException e) {
            // should never happen actually, there is always a stable index
            // prefix for a known namespace uri
            throw new IllegalNameException("Internal error.", e);
        }
    }
View Full Code Here

        try {
            return nameResolver.getJCRName(qName);
        } catch (NamespaceException e) {
            // should never happen actually, because we create yet unknown
            // uri mappings on the fly.
            throw new IllegalNameException("Internal error.", e);
        }
    }
View Full Code Here

        try {
            return resolver.getJCRName(qName);
        } catch (NamespaceException e) {
            // should never happen actually, because we create yet unknown
            // uri mappings on the fly.
            throw new IllegalNameException("Internal error.", e);
        }
    }
View Full Code Here

        try {
            return resolver.getJCRPath(path);
        } catch (NamespaceException e) {
            // should never happen actually, because we create yet unknown
            // uri mappings on the fly.
            throw new IllegalNameException("Internal error.", e);
        }
    }
View Full Code Here

            Node n = childNodes.item(i);
            if (n.getNodeName().equals("include-property")) {
                PathBuilder builder = new PathBuilder();
                for (String element : Text.explode(getTextContent(n), '/')) {
                    if (element.equals("*")) {
                        throw new IllegalNameException("* not supported in include-property");
                    }
                    builder.addLast(resolver.getQName(element));
                }
                includes.add(new PropertyInclude(builder.getPath()));
            }
View Full Code Here

            Node n = childNodes.item(i);
            if (n.getNodeName().equals("include-property")) {
                PathBuilder builder = new PathBuilder();
                for (String element : Text.explode(getTextContent(n), '/')) {
                    if (element.equals("*")) {
                        throw new IllegalNameException("* not supported in include-property");
                    }
                    builder.addLast(resolver.getQName(element));
                }
                includes.add(new PropertyInclude(builder.getPath()));
            }
View Full Code Here

        try {
            return nameResolver.getJCRName(qName);
        } catch (NamespaceException e) {
            // should never happen actually, there is always a stable index
            // prefix for a known namespace uri
            throw new IllegalNameException("Internal error.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.commons.conversion.IllegalNameException

Copyright © 2018 www.massapicom. 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.