public abstract class NamespaceTools extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<javax.jcr.Node,org.modeshape.jcr.api.NamespaceRegistry> |
getNamespaceRegistry
We need the Modeshape NamespaceRegistry, because it allows us to register
anonymous namespaces.
|
| Constructor and Description |
|---|
NamespaceTools() |
| Modifier and Type | Method and Description |
|---|---|
static javax.jcr.NamespaceRegistry |
getNamespaceRegistry(javax.jcr.Session session)
Return the javax.jcr.NamespaceRegistry associated with the arg session.
|
static void |
validatePath(javax.jcr.Session session,
String path)
Validate resource path for unregistered namespace prefixes
|
public static com.google.common.base.Function<javax.jcr.Node,org.modeshape.jcr.api.NamespaceRegistry> getNamespaceRegistry
public NamespaceTools()
public static javax.jcr.NamespaceRegistry getNamespaceRegistry(javax.jcr.Session session)
session - containing the NamespaceRegistrypublic static void validatePath(javax.jcr.Session session, String path)
session - the JCR session to usepath - the absolute path to the objectFedoraInvalidNamespaceException - on unregistered namespacesRepositoryRuntimeExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.