2 * Copyright (c) 2015 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 com.google.common.annotations.Beta;
13 * Tip of a data tree instance. It acts as a point to which modifications can
17 public interface DataTreeTip {
19 * Validate whether a particular modification can be applied to the data tree.
21 * Data tree modification.
22 * @throws DataValidationFailedException
23 * If modification data is not valid.
25 void validate(DataTreeModification modification) throws DataValidationFailedException;
28 * Prepare a modification for commit.
31 * Data tree modification.
32 * @return candidate data tree
34 DataTreeCandidateTip prepare(DataTreeModification modification);
39 * {@link DataTreeTip} implementations must not override the default identity hashCode method.
47 * {@link DataTreeTip} implementations must not override the default identity hashCode method, meaning their
48 * equals implementation must result in identity comparison.
51 boolean equals(Object obj);