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.SchemaPath;
12 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
15 * Builder for nodes, which can have 'type' statement must implement this
16 * interface. [typedef, type, leaf, leaf-list, deviate]
18 public interface TypeAwareBuilder extends Builder {
22 void setTypeQName(QName qname);
25 * Get qname of this node.
27 * @return QName of this node
32 * Get schema path of this node.
34 * @return SchemaPath of this node
39 * Get resolved type of this node.
41 * @return type of this node if it is already resolved, null otherwise
43 TypeDefinition<?> getType();
46 * Get builder of type of this node.
48 * @return builder of type of this node or null of this builder has already
51 TypeDefinitionBuilder getTypedef();
54 * Set resolved type to this node.
59 void setType(TypeDefinition<?> type);
62 * Set builder of type to this node.
65 * builder of type to set
67 void setTypedef(TypeDefinitionBuilder typedef);