Package org.eso.ias.command
Interface CommandStringSerializer
- All Known Implementing Classes:
CommandJsonSerializer
public interface CommandStringSerializer
Interface to serialize/deserializer the
CommandMessage
to/from strings-
Method Summary
Modifier and TypeMethodDescriptionConvert the passedCommandMessage
to a StringReturn the command by parsing the passed string
-
Method Details
-
iasCmdToString
Convert the passedCommandMessage
to a String- Parameters:
cmd
- The command to serialize- Returns:
- A string representation of the passed command
- Throws:
StringSerializerException
- In case of error creating the string from the passed command
-
valueOf
Return the command by parsing the passed string- Parameters:
str
- The string describing theCommandMessage
- Returns:
- the command obtained unmasrhalling the passed string
- Throws:
StringSerializerException
- In case of error converting the string
-