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.SchemaPath;
12 import org.opendaylight.controller.yang.model.api.TypeDefinition;
15 * Builders of all nodes, which can have 'type' statement must implement this
16 * interface. [typedef, type, leaf, leaf-list, deviate]
18 public interface TypeAwareBuilder extends Builder {
21 * Get qname of this node.
23 * @return QName of this node
28 * Get schema path of this node.
30 * @return SchemaPath of this node
35 * Get resolved type of this node.
37 * @return type of this node if it is already resolved, null otherwise
39 TypeDefinition<?> getType();
42 * Get builder of type of this node.
44 * @return builder of type of this node or null of this builder has already
47 TypeDefinitionBuilder getTypedef();
50 * Set resolved type to this node.
55 void setType(TypeDefinition<?> type);
58 * Set builder of type to this node.
61 * builder of type to set
63 void setTypedef(TypeDefinitionBuilder typedef);