/* * Copyright (c) 2014 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.data.impl.schema.tree; import com.google.common.base.Optional; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument; import org.opendaylight.yangtools.yang.data.api.schema.tree.DataValidationFailedException; import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.TreeNode; import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.Version; /** * Represents a {@link ModificationApplyOperation} which is rooted at conceptual * top of data tree. * *

* This implementation differs from other implementations in this package that * is not immutable, but may be upgraded to newer state if available by * explicitly invoking {@link #upgradeIfPossible()} and also serves as factory * for deriving snapshot {@link RootModificationApplyOperation} which will not * be affected by upgrade of original one. * *

* There are two variations of this {@link ModificationApplyOperation}: *