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
7 package org.opendaylight.yangtools.yang.parser.builder.api;
9 import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
12 * Builder for extension statement.
15 public interface ExtensionBuilder extends SchemaNodeBuilder {
18 * Sets argument name as was defined in YANG source
20 * @param argument argument name
22 void setArgument(String argument);
25 * Sets if extension should be represented in YIN format as element.
28 * @param yin true if extension should be represented in YIN as element.
30 void setYinElement(boolean yin);
34 * Builds definition of extednsion
38 ExtensionDefinition build();