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.controller.yang.parser.builder.api;
10 import org.opendaylight.controller.yang.common.QName;
11 import org.opendaylight.controller.yang.model.api.TypeDefinition;
14 * Basic implementation for TypeAwareBuilder builders.
16 public abstract class AbstractTypeAwareBuilder implements TypeAwareBuilder {
17 protected final int line;
18 protected final QName qname;
19 protected Builder parent;
20 protected TypeDefinition<?> type;
21 protected TypeDefinitionBuilder typedef;
23 public AbstractTypeAwareBuilder(final int line, final QName qname) {
29 public int getLine() {
34 public Builder getParent() {
39 public void setParent(final Builder parent) {
44 public QName getQName() {
49 public TypeDefinition<?> getType() {
54 public TypeDefinitionBuilder getTypedef() {
59 public void setType(TypeDefinition<?> type) {
65 public void setTypedef(TypeDefinitionBuilder typedef) {
66 this.typedef = typedef;