org.ros.internal.message
Class MessageContext
java.lang.Object
org.ros.internal.message.MessageContext
public class MessageContext
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MessageContext
public MessageContext(MessageDeclaration messageDeclaration)
newFromStrings
public static MessageContext newFromStrings(java.lang.String type,
java.lang.String definition)
getMessageIdentifer
public MessageIdentifier getMessageIdentifer()
getType
public java.lang.String getType()
getPackage
public java.lang.String getPackage()
getName
public java.lang.String getName()
getDefinition
public java.lang.String getDefinition()
addConstantField
public <T> void addConstantField(FieldType type,
java.lang.String name,
T value)
addConstantListField
public <T> void addConstantListField(java.lang.String name,
FieldType type,
java.util.List<T> value)
addValueField
public void addValueField(FieldType type,
java.lang.String name)
addValueListField
public void addValueListField(FieldType type,
java.lang.String name)
hasField
public boolean hasField(FieldType type,
java.lang.String name)
getField
public Field getField(java.lang.String name)
getFields
public java.util.List<Field> getFields()
- Returns:
- the
List
of Field
s in the order they were added
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