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.
16 public interface ExtensionBuilder extends SchemaNodeBuilder {
19 * Sets argument name as was defined in YANG source
21 * @param argument argument name
23 void setArgument(String argument);
26 * Sets if extension should be represented in YIN format as element.
29 * @param yin true if extension should be represented in YIN as element.
31 void setYinElement(boolean yin);
35 * Builds definition of extednsion
39 ExtensionDefinition build();