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.mdsal.binding.model.util.generated.type.builder;
10 import org.opendaylight.mdsal.binding.model.api.GeneratedProperty;
11 import org.opendaylight.mdsal.binding.model.api.GeneratedTransferObject;
12 import org.opendaylight.mdsal.binding.model.api.Restrictions;
13 import org.opendaylight.mdsal.binding.model.api.type.builder.GeneratedPropertyBuilder;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
17 public final class RuntimeGeneratedTOBuilder extends AbstractGeneratedTOBuilder {
19 public RuntimeGeneratedTOBuilder(final String packageName, final String name) {
20 super(packageName, name);
24 public void setRestrictions(final Restrictions restrictions) {
29 public void setSUID(final GeneratedPropertyBuilder suid) {
34 public void setDescription(final String description) {
39 public void setModuleName(final String moduleName) {
44 public void setSchemaPath(final SchemaPath schemaPath) {
49 public void setReference(final String reference) {
54 public GeneratedTransferObject build() {
59 AbstractEnumerationBuilder newEnumerationBuilder(final String packageName, final String name) {
60 return new RuntimeEnumerationBuilder(packageName, name);
63 private static final class GTO extends AbstractGeneratedTransferObject {
64 GTO(final RuntimeGeneratedTOBuilder builder) {
69 public Restrictions getRestrictions() {
70 throw new UnsupportedOperationException("Not available at runtime");
74 public GeneratedProperty getSUID() {
75 throw new UnsupportedOperationException("Not available at runtime");
79 public String getDescription() {
80 throw new UnsupportedOperationException("Not available at runtime");
84 public String getReference() {
85 throw new UnsupportedOperationException("Not available at runtime");
89 public Iterable<QName> getSchemaPath() {
90 throw new UnsupportedOperationException("Not available at runtime");
94 public String getModuleName() {
95 throw new UnsupportedOperationException("Not available at runtime");