3d7279655c172bf891b2dd08c2ec6eeeb780b0aa
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / InstanceIdentifierTypeDefinition.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.type;
9
10 import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
11 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
12
13 /**
14  * 
15  * Contains methods for getting data from the <code>instance-identifier</code>
16  * YANG built-in type.
17  */
18 public interface InstanceIdentifierTypeDefinition extends TypeDefinition<InstanceIdentifierTypeDefinition> {
19
20     /**
21      * Returns XPath for instance of
22      * <code>InstanceIdentifierTypeDefinition</code>.
23      * 
24      * @return instance of type <code>RevisionAwareXPath</code>
25      */
26     RevisionAwareXPath getPathStatement();
27
28     /**
29      * Returns true|false which represents argument of
30      * <code>require-instance</code> statement. This statement is the
31      * substatement of the <code>type</code> statement.
32      * 
33      * @return boolean value which is true if the <code>require-instance</code>
34      *         statement is true and vice versa
35      */
36     boolean requireInstance();
37 }