Merge "Added Layer 2 Types model"
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / RevisionAwareXPath.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.api;
9
10 /**
11  * 
12  * Contains methods for getting data (concrete XPath) and metadata (is XPath
13  * absolute) from XPath instance.
14  * 
15  * 
16  */
17 public interface RevisionAwareXPath {
18
19     /**
20      * Returns <code>true</code> if the XPapth starts in root of Yang model,
21      * otherwise returns <code>false</cdoe>.
22      * 
23      * @return <code>true</code> if the XPapth starts in root of Yang model,
24      *         otherwise returns <code>false</cdoe>
25      */
26     public boolean isAbsolute();
27
28     /**
29      * Returns the XPath formatted string as is defined in model. <br>
30      * For example:
31      * /prefix:container/prefix:container::cond[when()=foo]/prefix:leaf
32      * 
33      * @return the XPath formatted string as is defined in model.
34      */
35     public String toString();
36 }