2 * Copyright (c) 2014 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.model.api.ExtensionDefinition;
13 * Builder for extension statement.
15 * @deprecated Pre-Beryllium implementation, scheduled for removal.
18 public interface ExtensionBuilder extends SchemaNodeBuilder {
21 * Sets argument name as was defined in YANG source
23 * @param argument argument name
25 void setArgument(String argument);
28 * Sets if extension should be represented in YIN format as element.
31 * @param yin true if extension should be represented in YIN as element.
33 void setYinElement(boolean yin);
37 * Builds definition of extednsion
41 ExtensionDefinition build();