Bump yangtools to 13.0.0
[mdsal.git] / binding / mdsal-binding-generator / src / main / java / org / opendaylight / mdsal / binding / generator / impl / reactor / CamelCaseWithNamespaceNamingStrategy.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.mdsal.binding.generator.impl.reactor;
9
10 import org.eclipse.jdt.annotation.NonNull;
11
12 final class CamelCaseWithNamespaceNamingStrategy extends FallbackCamelCaseNamingStrategy {
13     CamelCaseWithNamespaceNamingStrategy(final @NonNull CamelCaseNamingStrategy delegate) {
14         super(delegate);
15     }
16
17     @Override
18     String simpleClassName() {
19         return delegate().simpleClassName() + delegate().namespace().suffix();
20     }
21
22     @Override
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
28         //        order.
29         return null;
30     }
31 }