45688a7e5d7fa9b2ccc8f58413717a52b833caf7
[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  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.builder.api;
9
10 import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
11
12 /**
13  * Builder for extension statement.
14  *
15  */
16 public interface ExtensionBuilder extends SchemaNodeBuilder {
17
18     /**
19      * Sets argument name as was defined in YANG source
20      *
21      * @param argument argument name
22      */
23     void setArgument(String argument);
24
25     /**
26      * Sets if extension should be represented in YIN format as element.
27      *
28      *
29      * @param yin true if extension should be represented in YIN as element.
30      */
31     void setYinElement(boolean yin);
32
33     /**
34      *
35      * Builds definition of extednsion
36      *
37      */
38     @Override
39     ExtensionDefinition build();
40
41 }