2 * Copyright (c) 2013 Cisco Systems, Inc. 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.yang.parser.builder.api;
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
14 * Basic implementation for TypeAwareBuilder builders.
16 public abstract class AbstractTypeAwareBuilder extends AbstractBuilder implements TypeAwareBuilder {
17 protected final QName qname;
18 protected TypeDefinition<?> type;
19 protected TypeDefinitionBuilder typedef;
21 public AbstractTypeAwareBuilder(final String moduleName, final int line, final QName qname) {
22 super(moduleName, line);
27 public QName getQName() {
32 public TypeDefinition<?> getType() {
37 public TypeDefinitionBuilder getTypedef() {
42 public void setType(TypeDefinition<?> type) {
48 public void setTypedef(TypeDefinitionBuilder typedef) {
49 this.typedef = typedef;