org.ros.namespace
Class NodeNameResolver

java.lang.Object
  extended by org.ros.namespace.NameResolver
      extended by org.ros.namespace.NodeNameResolver

public class NodeNameResolver
extends NameResolver

Resolver for Node names. Node namespace must handle the ~name syntax for private names.


Constructor Summary
NodeNameResolver(GraphName nodeName, NameResolver defaultResolver)
           
 
Method Summary
 GraphName resolve(GraphName name)
           
 GraphName resolve(java.lang.String name)
           
 
Methods inherited from class org.ros.namespace.NameResolver
getNamespace, getRemappings, lookUpRemapping, newChild, newChild, newFromNamespace, newFromNamespace, newFromNamespaceAndRemappings, newRoot, newRootFromRemappings, resolve, resolve, resolve, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeNameResolver

public NodeNameResolver(GraphName nodeName,
                        NameResolver defaultResolver)
Parameters:
nodeName - the name of the Node
defaultResolver - the NameResolver to use if asked to resolve a non-private name
Method Detail

resolve

public GraphName resolve(GraphName name)
Overrides:
resolve in class NameResolver
Parameters:
name - name to resolve
Returns:
the name resolved relative to the default or private namespace

resolve

public GraphName resolve(java.lang.String name)
Overrides:
resolve in class NameResolver
See Also:
resolve(GraphName)