public final 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.
|
| 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 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 namespacesRepositoryRuntimeException - if repository runtime exception occurredCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.