Package org.brixcms.jcr.api

Examples of org.brixcms.jcr.api.JcrNamespaceRegistry


     *
     * @param session
     * @return
     */
    private static String createXMLNS(JcrSession session) {
        JcrNamespaceRegistry registry = session.getWorkspace().getNamespaceRegistry();
        String prefixes[] = registry.getPrefixes();
        StringBuilder result = new StringBuilder();
        for (String prefix : prefixes) {
            if (prefix != null && prefix.length() > 0) {
                if (result.length() > 0) {
                    result.append("\n");
                }
                result.append("xmlns:");
                result.append(prefix);
                result.append("=\"");
                result.append(registry.getURI(prefix));
                result.append("\"");
            }
        }
        return result.toString();
    }
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.api.JcrNamespaceRegistry

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.