Skip to content

Q/A: CodeList and UML #101

Answered by desruisseaux
paulushub asked this question in Q&A
Nov 2, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hello

I thought that GitHub discussions were already enabled, aren't they?

All the implementations of the CodeList so far in the repository seem to be final. Is there any current case of an implementation of the CodeList being further extended in the repository?

There are cases where the set of values of a CodeList needs to be extended (i.e., custom values added), but I'm not aware of cases where a CodeList subclass itself needs to be extended. For example, in order to create a new AxisDirection, the following code can be used:

public static final AxisDirection MY_CUSTOM_DIRECTION = AxisDirection.valueOf("MyCustomDirection");

The fact that valueOf(String) creates a new value when there …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by paulushub
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@paulushub
Comment options

@desruisseaux
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #100 on November 02, 2024 17:24.