org.jboss.dna.repository.util
Class JcrNamespaceRegistry

java.lang.Object
  extended by org.jboss.dna.repository.util.JcrNamespaceRegistry
All Implemented Interfaces:
org.jboss.dna.graph.properties.NamespaceRegistry

public class JcrNamespaceRegistry
extends Object
implements org.jboss.dna.graph.properties.NamespaceRegistry

Author:
Randall Hauch

Constructor Summary
JcrNamespaceRegistry(SessionFactory sessionFactory, String repositoryWorkspaceName)
           
 
Method Summary
 String getDefaultNamespaceUri()
          
 String getNamespaceForPrefix(String prefix)
          
 String getPrefixForNamespaceUri(String namespaceUri, boolean generateIfMissing)
          
 Set<String> getRegisteredNamespaceUris()
          
 boolean isRegisteredNamespaceUri(String namespaceUri)
          
 String register(String prefix, String namespaceUri)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrNamespaceRegistry

public JcrNamespaceRegistry(SessionFactory sessionFactory,
                            String repositoryWorkspaceName)
Method Detail

getDefaultNamespaceUri

public String getDefaultNamespaceUri()

Specified by:
getDefaultNamespaceUri in interface org.jboss.dna.graph.properties.NamespaceRegistry

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix)

Specified by:
getNamespaceForPrefix in interface org.jboss.dna.graph.properties.NamespaceRegistry

getPrefixForNamespaceUri

public String getPrefixForNamespaceUri(String namespaceUri,
                                       boolean generateIfMissing)

Specified by:
getPrefixForNamespaceUri in interface org.jboss.dna.graph.properties.NamespaceRegistry

isRegisteredNamespaceUri

public boolean isRegisteredNamespaceUri(String namespaceUri)

Specified by:
isRegisteredNamespaceUri in interface org.jboss.dna.graph.properties.NamespaceRegistry

register

public String register(String prefix,
                       String namespaceUri)

Specified by:
register in interface org.jboss.dna.graph.properties.NamespaceRegistry

getRegisteredNamespaceUris

public Set<String> getRegisteredNamespaceUris()

Specified by:
getRegisteredNamespaceUris in interface org.jboss.dna.graph.properties.NamespaceRegistry


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.