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.
24 * Create a new data tree.
26 * @return A data tree instance.
28 DataTree create(TreeType type);
31 * Create a new data tree rooted at a particular node.
33 * @return A data tree instance.
35 DataTree create(TreeType treeType, YangInstanceIdentifier rootPath);