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.
21 * @return A data tree instance.
23 DataTree create(TreeType type);
26 * Create a new data tree.
30 * @return A data tree instance.
32 DataTree create(DataTreeConfiguration treeConfig);
35 * Create a new data tree rooted at a particular node.
41 * @return A data tree instance.
43 DataTree create(TreeType treeType, YangInstanceIdentifier rootPath);