Skip to content

Using enum for fixed-set options #25

@l3nz

Description

@l3nz

In https://github.com/l3nz/ari4java/blob/master/codegen-data/ari_1_6_0/bridges.json
See e.g.

    "defaultValue": "none",
    "allowableValues": {
        "valueType": "LIST",
        "values": [
            "none",
            "any",
            "*",
            "#"
        ]
    }

Issues:

  • How do we get a meaningful, short Enum name
  • If the Enum is null, the parameter is not added
  • The Enum name could be not a valid Java name. For example, TerminateOn.none is valid (though t might be better uppercased) while TerminateOn.# is not (so we must rename it to TerminateOn.POUND)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions