Examples of toJCRName()


Examples of org.apache.jackrabbit.name.QName.toJCRName()

        String comma = "";
        try {
            for (int i = 0; i < specs.length; i++) {
                sb.append(comma);
                QName prop = ISO9075.encode(specs[i].getProperty());
                sb.append(" @").append(prop.toJCRName(resolver));
                if (!specs[i].isAscending()) {
                    sb.append(" descending");
                }
                comma = ",";
            }
View Full Code Here

Examples of org.apache.jackrabbit.name.QName.toJCRName()

     */
    public String translatePropertyName(String name, NamespaceResolver resolver)
            throws IllegalNameException, UnknownPrefixException {
        QName qName = QName.fromJCRName(name, resolver);
        try {
            return qName.toJCRName(this);
        } catch (NoPrefixDeclaredException 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

Examples of org.apache.jackrabbit.name.QName.toJCRName()

                } else {
                    // then this is a node != the root node
                    // will never match anything!
                    String name = "";
                    try {
                        name = nameTest.toJCRName(nsMappings);
                    } catch (NoPrefixDeclaredException e) {
                        exceptions.add(e);
                    }
                    BooleanQuery and = new BooleanQuery();
                    and.add(new TermQuery(new Term(FieldNames.PARENT, "")), true, false);
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.