public class NameResolver
extends java.lang.Object
Constructor and Description |
---|
NameResolver(GraphName namespace,
java.util.Map<GraphName,GraphName> remappings) |
Modifier and Type | Method and Description |
---|---|
GraphName |
getNamespace() |
java.util.Map<GraphName,GraphName> |
getRemappings() |
protected GraphName |
lookUpRemapping(GraphName name) |
NameResolver |
newChild(GraphName namespace)
Construct a new child
NameResolver with the same remappings as this
NameResolver . |
NameResolver |
newChild(java.lang.String namespace) |
static NameResolver |
newFromNamespace(GraphName namespace) |
static NameResolver |
newFromNamespace(java.lang.String namespace) |
static NameResolver |
newFromNamespaceAndRemappings(java.lang.String namespace,
java.util.Map<GraphName,GraphName> remappings) |
static NameResolver |
newRoot() |
static NameResolver |
newRootFromRemappings(java.util.Map<GraphName,GraphName> remappings) |
GraphName |
resolve(GraphName name) |
GraphName |
resolve(GraphName namespace,
GraphName name)
Resolve name relative to namespace.
|
GraphName |
resolve(GraphName namespace,
java.lang.String name) |
GraphName |
resolve(java.lang.String name) |
GraphName |
resolve(java.lang.String namespace,
GraphName name) |
GraphName |
resolve(java.lang.String namespace,
java.lang.String name) |
public static NameResolver newFromNamespace(GraphName namespace)
public static NameResolver newFromNamespace(java.lang.String namespace)
public static NameResolver newRoot()
public static NameResolver newRootFromRemappings(java.util.Map<GraphName,GraphName> remappings)
public static NameResolver newFromNamespaceAndRemappings(java.lang.String namespace, java.util.Map<GraphName,GraphName> remappings)
public GraphName getNamespace()
public GraphName resolve(GraphName namespace, GraphName name)
namespace
- name
- public GraphName resolve(java.lang.String namespace, java.lang.String name)
resolve(GraphName, GraphName)
public GraphName resolve(GraphName namespace, java.lang.String name)
resolve(GraphName, GraphName)
public GraphName resolve(java.lang.String namespace, GraphName name)
resolve(GraphName, GraphName)
public GraphName resolve(GraphName name)
name
- name to resolvepublic GraphName resolve(java.lang.String name)
resolve(GraphName)
public NameResolver newChild(GraphName namespace)
NameResolver
with the same remappings as this
NameResolver
. The namespace of the new child NameResolver
will be the resolved in this namespace.namespace
- the namespace of the child NameResolver
relative to this
NameResolver
's namespaceNameResolver
whose namespace is relative to the
parent NameResolver
's namespacepublic NameResolver newChild(java.lang.String namespace)
newChild(GraphName)