org.ros.internal.message
Class MessageDefinitionFileProvider
java.lang.Object
org.ros.internal.message.MessageDefinitionFileProvider
- All Implemented Interfaces:
- MessageDefinitionProvider
- Direct Known Subclasses:
- ServiceDefinitionFileProvider, TopicDefinitionFileProvider
public class MessageDefinitionFileProvider
- extends java.lang.Object
- implements MessageDefinitionProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageDefinitionFileProvider
public MessageDefinitionFileProvider(StringFileProvider stringFileProvider)
getParentBaseName
protected static java.lang.String getParentBaseName(java.lang.String filename)
update
public void update()
- Updates the topic definition cache.
- See Also:
StringFileProvider.update()
addDirectory
public void addDirectory(java.io.File directory)
- See Also:
StringFileProvider.addDirectory(File)
getPackages
public java.util.Collection<java.lang.String> getPackages()
- Specified by:
getPackages
in interface MessageDefinitionProvider
getMessageIdentifiersByPackage
public java.util.Collection<MessageIdentifier> getMessageIdentifiersByPackage(java.lang.String pkg)
- Specified by:
getMessageIdentifiersByPackage
in interface MessageDefinitionProvider
- Parameters:
pkg
- the name of the package to filter on
- Returns:
- the
MessageIdentifier
s for all messages defined in the
specified package
get
public java.lang.String get(java.lang.String type)
- Specified by:
get
in interface MessageDefinitionProvider
- Parameters:
type
- the type of message definition to provide
- Returns:
- the message definition for the specified type
has
public boolean has(java.lang.String type)
- Specified by:
has
in interface MessageDefinitionProvider
- Parameters:
type
- the type of message definition to provide
- Returns:
true
if the definition for the specified type is available,
false
otherwise