Package org.ros.namespace
Class NameResolver
java.lang.Object
org.ros.namespace.NameResolver
- Direct Known Subclasses:
NodeNameResolver
- Author:
- ethan.rublee@gmail.com (Ethan Rublee), kwc@willowgarage.com (Ken Conley)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GraphNamelookUpRemapping(GraphName name) Construct a new childNameResolverwith the same remappings as thisNameResolver.static NameResolvernewFromNamespace(String namespace) static NameResolvernewFromNamespace(GraphName namespace) static NameResolvernewFromNamespaceAndRemappings(String namespace, Map<GraphName, GraphName> remappings) static NameResolvernewRoot()static NameResolvernewRootFromRemappings(Map<GraphName, GraphName> remappings) Resolve name relative to namespace.
-
Constructor Details
-
NameResolver
-
-
Method Details
-
newFromNamespace
-
newFromNamespace
-
newRoot
-
newRootFromRemappings
-
newFromNamespaceAndRemappings
public static NameResolver newFromNamespaceAndRemappings(String namespace, Map<GraphName, GraphName> remappings) -
getNamespace
-
resolve
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
- See Also:
-
resolve
- See Also:
-
resolve
- See Also:
-
resolve
- Parameters:
name- name to resolve- Returns:
- the name resolved relative to the default namespace
-
resolve
- See Also:
-
getRemappings
- Returns:
- remappings
-
newChild
Construct a new childNameResolverwith the same remappings as thisNameResolver. The namespace of the new childNameResolverwill be the resolved in this namespace.- Parameters:
namespace- the namespace of the childNameResolverrelative to thisNameResolver's namespace- Returns:
- a new child
NameResolverwhose namespace is relative to the parentNameResolver's namespace
-
newChild
- See Also:
-
lookUpRemapping
-