public final class NamespaceTools extends Object
Modifier and Type | Method and Description |
---|---|
static javax.jcr.NamespaceRegistry |
getNamespaceRegistry(javax.jcr.Session session)
Return the
NamespaceRegistry associated with the arg session. |
static Map<String,String> |
getNamespaces(javax.jcr.Session session)
Retrieve the namespaces as a Map
|
static void |
validatePath(javax.jcr.Session session,
String path)
Validate resource path for unregistered namespace prefixes
|
public static javax.jcr.NamespaceRegistry getNamespaceRegistry(javax.jcr.Session session)
NamespaceRegistry
associated with the arg 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 occurredpublic static Map<String,String> getNamespaces(javax.jcr.Session session)
session
- the JCR session to useCopyright © 2013–2016 DuraSpace, Inc.. All rights reserved.