6516eefd8303da971f51e89f0e360adcbe793059
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / api / ExtensionBuilder.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
3  * This program and the accompanying materials are made available under the
4  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/epl-v10.html
6  */
7 package org.opendaylight.yangtools.yang.parser.builder.api;
8
9 import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
10
11 /**
12  * Builder for extension statement.
13  *
14  */
15 public interface ExtensionBuilder extends SchemaNodeBuilder {
16
17     /**
18      * Sets argument name as was defined in YANG source
19      *
20      * @param argument argument name
21      */
22     void setArgument(String argument);
23
24     /**
25      * Sets if extension should be represented in YIN format as element.
26      *
27      *
28      * @param yin true if extension should be represented in YIN as element.
29      */
30     void setYinElement(boolean yin);
31
32     /**
33      *
34      * Builds definition of extednsion
35      *
36      */
37     @Override
38     ExtensionDefinition build();
39
40 }