// Path: core/src/main/java/io/t28/json2java/core/Style.java
// public enum Style {
//     NONE {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new ModelClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     GSON {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new GsonClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     JACKSON {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new JacksonClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     MOSHI {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new MoshiClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     };
// 
//     @Nonnull
//     @CheckReturnValue
//     abstract ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                     @Nonnull NamePolicy methodNameStrategy,
//                                     @Nonnull NamePolicy parameterNameStrategy);
// 
//     @Nonnull
//     @CheckReturnValue
//     public static Optional<Style> fromName(@Nonnull String name) {
//         return Stream.of(Style.values())
//                 .filter(style -> style.name().equalsIgnoreCase(name))
//                 .findFirst();
//     }
// 
//     @Nonnull
//     @CheckReturnValue
//     public static Style fromName(@Nonnull String name, @Nonnull Style defaultStyle) {
//         return fromName(name).orElse(defaultStyle);
//     }
// 
//     public String get() {
//         return "";
//     }
// }


import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import io.t28.json2java.core.Style;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;
/*
 * Copyright (c) 2017 Tatsuya Maki
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.t28.json2java.idea.setting;



public interface Json2JavaSettings {
    @Nonnull
    @CheckReturnValue
    static Json2JavaSettings getInstance() {
        return new TemporaryJson2JavaSettings();
    }

    @Nonnull
    @CheckReturnValue
    static Json2JavaSettings getInstance(@Nonnull Project project) {
        return ServiceManager.getService(project, Json2JavaSettings.class);
    }

    @Nonnull
    @CheckReturnValue
    Style getStyle();

    @Nonnull
// Path: core/src/main/java/io/t28/json2java/core/Style.java
// public enum Style {
//     NONE {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new ModelClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     GSON {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new GsonClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     JACKSON {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new JacksonClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     },
//     MOSHI {
//         @Nonnull
//         @Override
//         ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                @Nonnull NamePolicy methodNameStrategy,
//                                @Nonnull NamePolicy parameterNameStrategy) {
//             return new MoshiClassBuilder(fieldNameStrategy, methodNameStrategy, parameterNameStrategy);
//         }
//     };
// 
//     @Nonnull
//     @CheckReturnValue
//     abstract ClassBuilder toBuilder(@Nonnull NamePolicy fieldNameStrategy,
//                                     @Nonnull NamePolicy methodNameStrategy,
//                                     @Nonnull NamePolicy parameterNameStrategy);
// 
//     @Nonnull
//     @CheckReturnValue
//     public static Optional<Style> fromName(@Nonnull String name) {
//         return Stream.of(Style.values())
//                 .filter(style -> style.name().equalsIgnoreCase(name))
//                 .findFirst();
//     }
// 
//     @Nonnull
//     @CheckReturnValue
//     public static Style fromName(@Nonnull String name, @Nonnull Style defaultStyle) {
//         return fromName(name).orElse(defaultStyle);
//     }
// 
//     public String get() {
//         return "";
//     }
// }


// Path: idea/src/main/java/io/t28/json2java/idea/setting/Json2JavaSettings.java
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import io.t28.json2java.core.Style;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;

/*
 * Copyright (c) 2017 Tatsuya Maki
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.t28.json2java.idea.setting;



public interface Json2JavaSettings {
    @Nonnull
    @CheckReturnValue
    static Json2JavaSettings getInstance() {
        return new TemporaryJson2JavaSettings();
    }

    @Nonnull
    @CheckReturnValue
    static Json2JavaSettings getInstance(@Nonnull Project project) {
        return ServiceManager.getService(project, Json2JavaSettings.class);
    }

    @Nonnull
    @CheckReturnValue
    Style getStyle();

    @Nonnull
    Json2JavaSettings setStyle(@Nonnull Style style);