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 org.modeshape.jcr.api.NamespaceRegistry |
getNamespaceRegistry(javax.jcr.Item item)
Get the namespace registry for the given node
|
static org.modeshape.jcr.api.NamespaceRegistry |
getNamespaceRegistry(javax.jcr.Session session)
Get the namespace registry for the session
|
public static com.google.common.base.Function<javax.jcr.Node,org.modeshape.jcr.api.NamespaceRegistry> getNamespaceRegistry
public static org.modeshape.jcr.api.NamespaceRegistry getNamespaceRegistry(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - javax.jcr.RepositoryExceptionpublic static org.modeshape.jcr.api.NamespaceRegistry getNamespaceRegistry(javax.jcr.Item item)
throws javax.jcr.RepositoryException
item - javax.jcr.RepositoryExceptionCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.