X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fbuilder%2Fapi%2FBuilder.java;fp=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fbuilder%2Fapi%2FBuilder.java;h=0000000000000000000000000000000000000000;hb=c4f0e040967ef94ac8b8b1a3be310878e9b5ba05;hp=3e136562f6130f363c27dceedbecd80a4c5768c2;hpb=8bd5bd285d4ad7d8621875bf2290f2bebe09cd8c;p=yangtools.git diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/Builder.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/Builder.java deleted file mode 100644 index 3e136562f6..0000000000 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/builder/api/Builder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.yangtools.yang.parser.builder.api; - -import java.util.List; -import org.opendaylight.yangtools.concepts.Mutable; - -/** - * Parent interface for all builder interfaces. - * - * @deprecated Pre-Beryllium implementation, scheduled for removal. - */ -@Deprecated -public interface Builder extends Mutable { - - /** - * Returns name of module in which node created by this builder - * was declared. - * - * @return module name - */ - String getModuleName(); - - /** - * Get current line in yang file, on which statement - * associated with this builder was declared. - * - * @return current line in yang file - */ - int getLine(); - - /** - * Returns parent node builder of this node. - * - * @return parent node builder or null if this is top level node - */ - Builder getParent(); - - /** - * Set parent of this node. - * - * @param parent - * parent node builder - */ - void setParent(Builder parent); - - /** - * Adds an unknown node builder to this builder. - * - * When product (child) is builded by the {@link #build()} - * method, this builder is also built and unknown node is added - * as child to the product of this builder. - * - * @param unknownNode an unknown node builder - */ - void addUnknownNodeBuilder(UnknownSchemaNodeBuilder unknownNode); - - /** - * Get builders of unknown nodes defined in this node. - * - * @return collection of UnknownSchemaNodeBuilder objects - */ - List getUnknownNodes(); - - /** - * Build YANG data model node. - * - * This method should create an instance of YANG data model node. After - * creating an instance, this instance should be returned for each call - * without repeating build process. - * - * @return YANG data model node - */ - Object build(); - -}