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.data.api.schema.tree;
10 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 * Factory interface for creating data trees.
15 public interface DataTreeFactory {
17 * Create a new data tree.
19 * @return A data tree instance.
21 * @deprecated Use {@link #create(TreeType)} instead.
27 * Create a new data tree.
31 * @return A data tree instance.
33 DataTree create(TreeType type);
36 * Create a new data tree rooted at a particular node.
42 * @return A data tree instance.
44 DataTree create(TreeType treeType, YangInstanceIdentifier rootPath);