org.ros.internal.message
Class MessageDefinitionProviderChain

java.lang.Object
  extended by org.ros.internal.message.MessageDefinitionProviderChain
All Implemented Interfaces:
MessageDefinitionProvider

public class MessageDefinitionProviderChain
extends java.lang.Object
implements MessageDefinitionProvider


Constructor Summary
MessageDefinitionProviderChain()
           
 
Method Summary
 void addMessageDefinitionProvider(MessageDefinitionProvider messageDefinitionProvider)
           
 java.lang.String get(java.lang.String messageType)
           
 java.util.Collection<MessageIdentifier> getMessageIdentifiersByPackage(java.lang.String pkg)
           
 java.util.Collection<java.lang.String> getPackages()
           
 boolean has(java.lang.String messageType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDefinitionProviderChain

public MessageDefinitionProviderChain()
Method Detail

addMessageDefinitionProvider

public void addMessageDefinitionProvider(MessageDefinitionProvider messageDefinitionProvider)

get

public java.lang.String get(java.lang.String messageType)
Specified by:
get in interface MessageDefinitionProvider
Parameters:
messageType - the type of message definition to provide
Returns:
the message definition for the specified type

has

public boolean has(java.lang.String messageType)
Specified by:
has in interface MessageDefinitionProvider
Parameters:
messageType - the type of message definition to provide
Returns:
true if the definition for the specified type is available, false otherwise

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 MessageIdentifiers for all messages defined in the specified package