2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.binding.generator.impl.reactor;
10 import org.eclipse.jdt.annotation.NonNull;
12 final class CamelCaseWithNamespaceNamingStrategy extends FallbackCamelCaseNamingStrategy {
13 CamelCaseWithNamespaceNamingStrategy(final @NonNull CamelCaseNamingStrategy delegate) {
18 String simpleClassName() {
19 return delegate().simpleClassName() + delegate().namespace().suffix();
23 ClassNamingStrategy fallback() {
24 // FIXME: MDSAL-502: add a BijectiveNamingStrategy
25 // The algorithm needs to essentially fall back to using escape-based translation scheme, where each
26 // localName results in a unique name, while not conflicting with any possible preferredName. The exact
27 // mechanics for that are TBD. A requirement for that mapping is that it must not rely on definition