Class DynamicCommandMetadata (0.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass DynamicCommandMetadataDynamicCommandMetadata is a simple POJO for extracting commands which are user-definable and generated at run-time from a user-defined JSON. This class concerns with the population of those JSON objects onto more accessible formats for easier internal handling.
Inherited Members
Static Methods
fromJSON(JSONObject jsonObject)
publicstaticList<DynamicCommandMetadata>fromJSON(JSONObjectjsonObject)Takes a JSON object and returns a list of metadata objects holding the desired information.
org.json.simple.JSONObjectInput JSON object in the format {"commands": [{"input_pattern": "", "output_pattern": "", "matcher_array": [number1, ...]}, ...]}
A list of constructed metadata objects in the format understood by DynamicCommands
Methods
getInputPattern()
publicStringgetInputPattern()getMatcherOrder()
publicList<String>getMatcherOrder()getOutputPattern()
publicStringgetOutputPattern()