2 * Copyright (c) 2018 Pantheon Technologies, 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.yangtools.binding.model.ri.generated.type.builder;
10 import org.opendaylight.yangtools.binding.model.api.GeneratedType;
11 import org.opendaylight.yangtools.binding.model.api.JavaTypeName;
12 import org.opendaylight.yangtools.binding.model.api.type.builder.GeneratedTypeBuilder;
14 public final class RuntimeGeneratedTypeBuilder extends AbstractGeneratedTypeBuilder<GeneratedTypeBuilder> implements
15 GeneratedTypeBuilder {
17 public RuntimeGeneratedTypeBuilder(final JavaTypeName identifier) {
23 public GeneratedType build() {
24 return new GeneratedTypeImpl(this);
28 public void setDescription(final String description) {
33 public void setModuleName(final String moduleName) {
38 public void setReference(final String reference) {
43 protected RuntimeGeneratedTypeBuilder thisInstance() {
47 private static final class GeneratedTypeImpl extends AbstractGeneratedType {
48 GeneratedTypeImpl(final RuntimeGeneratedTypeBuilder builder) {
53 public String getDescription() {
58 public String getReference() {
63 public String getModuleName() {
67 private static UnsupportedOperationException unsupported() {
68 return new UnsupportedOperationException("Not available at runtime");