2 * Copyright (c) 2013 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.model.api;
12 * Contains methods for getting data (concrete XPath) and metadata (is XPath
13 * absolute) from XPath instance.
17 public interface RevisionAwareXPath {
20 * Returns <code>true</code> if the XPapth starts in root of Yang model,
21 * otherwise returns <code>false</cdoe>.
23 * @return <code>true</code> if the XPapth starts in root of Yang model,
24 * otherwise returns <code>false</cdoe>
26 public boolean isAbsolute();
29 * Returns the XPath formatted string as is defined in model. <br>
31 * /prefix:container/prefix:container::cond[when()=foo]/prefix:leaf
33 * @return the XPath formatted string as is defined in model.
35 public String toString();