Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get segments, but camel-cased? #46

Open
ijdickinson opened this issue Sep 20, 2022 · 3 comments
Open

Is it possible to get segments, but camel-cased? #46

ijdickinson opened this issue Sep 20, 2022 · 3 comments

Comments

@ijdickinson
Copy link

I'm synthesising resource URI's by using toCleanSegment() on a field value. This gives me hyphenated local-names for resources (e.g. condition:condition-good). I'm finding that it would be easier for the code consuming the dclib output if the local-names were camel cased (so condition:conditionGood).

Is there a way to generate clean segments, but using camel-casing instead of kebabs?

@der
Copy link
Member

der commented Sep 20, 2022

There's nothing built in I'm afraid. There's clearly standard java libraries for that sort of thing but it's not built into the java String type and there's not currently a separate dclib library function for it.

@ijdickinson
Copy link
Author

OK, thanks @der.

Perhaps something that could go on a feature backlog somewhere? 😄

@der
Copy link
Member

der commented Sep 20, 2022

Sure, tagged as an enhancement request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants