Class Arguments
java.lang.Object
com.symphony.bdk.core.activity.parsing.Arguments
Class storing arguments matching a
SlashCommandPattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsString
(String argumentName) getCashtag
(String argumentName) getHashtag
(String argumentName) getMention
(String argumentName)
-
Constructor Details
-
Arguments
public Arguments() -
Arguments
-
-
Method Details
-
getArgumentNames
- Returns:
- the set of argument names
-
get
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the argument value if present, null otherwise. Actual type of value can be
String
,Mention
,Cashtag
,Hashtag
depending on the correspondingSlashCommandPattern
.
-
getAsString
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the string representation of the argument if present, null otherwise
-
getString
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the argument value if present and if is of type
String
, null otherwise
-
getHashtag
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the argument value if present and if is of type
Hashtag
, null otherwise
-
getCashtag
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the argument value if present and if is of type
Cashtag
, null otherwise
-
getMention
- Parameters:
argumentName
- the name of the argument to be retrieved- Returns:
- the argument value if present and if is of type
Mention
, null otherwise
-