BUG-865: deprecate pre-Beryllium parser elements
[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  * @deprecated Pre-Beryllium implementation, scheduled for removal.
16  */
17 @Deprecated
18 public interface ExtensionBuilder extends SchemaNodeBuilder {
19
20     /**
21      * Sets argument name as was defined in YANG source
22      *
23      * @param argument argument name
24      */
25     void setArgument(String argument);
26
27     /**
28      * Sets if extension should be represented in YIN format as element.
29      *
30      *
31      * @param yin true if extension should be represented in YIN as element.
32      */
33     void setYinElement(boolean yin);
34
35     /**
36      *
37      * Builds definition of extednsion
38      *
39      */
40     @Override
41     ExtensionDefinition build();
42
43 }