org.ros.namespace
Class NameResolver
java.lang.Object
   org.ros.namespace.NameResolver
org.ros.namespace.NameResolver
- Direct Known Subclasses: 
- NodeNameResolver
- public class NameResolver 
- extends java.lang.Object
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NameResolver
public NameResolver(GraphName namespace,
                    java.util.Map<GraphName,GraphName> remappings)
newFromNamespace
public static NameResolver newFromNamespace(GraphName namespace)
- 
 
newFromNamespace
public static NameResolver newFromNamespace(java.lang.String namespace)
- 
 
newRoot
public static NameResolver newRoot()
- 
 
newRootFromRemappings
public static NameResolver newRootFromRemappings(java.util.Map<GraphName,GraphName> remappings)
- 
 
newFromNamespaceAndRemappings
public static NameResolver newFromNamespaceAndRemappings(java.lang.String namespace,
                                                         java.util.Map<GraphName,GraphName> remappings)
- 
 
getNamespace
public GraphName getNamespace()
- 
 
resolve
public GraphName resolve(GraphName namespace,
                         GraphName name)
- Resolve name relative to namespace. If namespace is not global, it will
 first be resolved to a global name. This method will not resolve private
 ~names.
 
 This does all remappings of both the namespace and name.
 
- 
- Parameters:
- namespace-
- name-
- Returns:
- the fully resolved name relative to the given namespace
 
resolve
public GraphName resolve(java.lang.String namespace,
                         java.lang.String name)
- 
- See Also:
- resolve(GraphName, GraphName)
 
resolve
public GraphName resolve(GraphName namespace,
                         java.lang.String name)
- 
- See Also:
- resolve(GraphName, GraphName)
 
resolve
public GraphName resolve(java.lang.String namespace,
                         GraphName name)
- 
- See Also:
- resolve(GraphName, GraphName)
 
resolve
public GraphName resolve(GraphName name)
- 
- Parameters:
- name- name to resolve
- Returns:
- the name resolved relative to the default namespace
 
resolve
public GraphName resolve(java.lang.String name)
- 
- See Also:
- resolve(GraphName)
 
getRemappings
public java.util.Map<GraphName,GraphName> getRemappings()
- 
- Returns:
- remappings
 
newChild
public NameResolver newChild(GraphName namespace)
- Construct a new child NameResolverwith the same remappings as thisNameResolver. The namespace of the new childNameResolverwill be the resolved in this namespace.
 
- 
- Parameters:
- namespace- the namespace of the child- NameResolverrelative to this- NameResolver's namespace
- Returns:
- a new child NameResolverwhose namespace is relative to the
         parentNameResolver's namespace
 
newChild
public NameResolver newChild(java.lang.String namespace)
- 
- See Also:
- newChild(GraphName)
 
lookUpRemapping
protected GraphName lookUpRemapping(GraphName name)
-