Make ConstraintMetaDefinition extend DocumentedNode
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ConstraintMetaDefinition.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  * Contains methods which retrieve values for description, error message, error app tag and reference (to some external
12  * definition, resource or similar).
13  */
14 public interface ConstraintMetaDefinition extends DocumentedNode {
15
16     /**
17      * Returns the value of the argument of YANG <code>error-app-tag</code>
18      * keyword.
19      *
20      * @return string with the application tag
21      */
22     String getErrorAppTag();
23
24     /**
25      * Returns the value of the argument of YANG <code>error-message</code>
26      * keyword.
27      *
28      * @return string with the error message
29      */
30     String getErrorMessage();
31 }