org.ros.message
Class MessageDeclaration

java.lang.Object
  extended by org.ros.message.MessageDeclaration
Direct Known Subclasses:
ServiceDescription, TopicDescription

public class MessageDeclaration
extends java.lang.Object

An MessageIdentifier and definition pair from which all qualities of the message uniquely identifiable by the MessageIdentifier can be derived.


Constructor Summary
MessageDeclaration(MessageIdentifier messageIdentifier, java.lang.String definition)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDefinition()
           
 MessageIdentifier getMessageIdentifier()
           
 java.lang.String getName()
           
 java.lang.String getPackage()
           
 java.lang.String getType()
           
 int hashCode()
           
static MessageDeclaration newFromStrings(java.lang.String type, java.lang.String definition)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageDeclaration

public MessageDeclaration(MessageIdentifier messageIdentifier,
                          java.lang.String definition)
Parameters:
messageIdentifier - the MessageIdentifier
definition - the message definition
Method Detail

newFromStrings

public static MessageDeclaration newFromStrings(java.lang.String type,
                                                java.lang.String definition)

getMessageIdentifier

public MessageIdentifier getMessageIdentifier()

getType

public java.lang.String getType()

getPackage

public java.lang.String getPackage()

getName

public java.lang.String getName()

getDefinition

public java.lang.String getDefinition()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object