org.ros.message
Class MessageDeclaration
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MessageDeclaration
public MessageDeclaration(MessageIdentifier messageIdentifier,
java.lang.String definition)
- Parameters:
messageIdentifier
- the MessageIdentifier
definition
- the message definition
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