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 accessing constraint declaration for valid data in form
13 * of XPath expressions.<br>
15 * <i>YANG example:<br>
16 * <code>must "ifType != 'ethernet' or (ifType = 'ethernet' and ifMTU = 1500)";</code>
19 public interface MustDefinition extends ConstraintMetaDefinition {
22 * Returns XPath expression which contains constraint.
24 * @return XPath expression which represents the value of the argument of
25 * the <code>must</code> YANG substatement
27 RevisionAwareXPath getXpath();