2 * Copyright (c) 2015 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.stmt;
10 import javax.annotation.Nullable;
13 * Common interface for statements which contain either a description/reference or a description/reference/status combo.
15 public interface DocumentationGroup {
17 * Return description statement, if available.
19 * @return description statement
21 @Nullable DescriptionStatement getDescription();
24 * Return description statement, if available.
26 * @return description statement
28 @Nullable ReferenceStatement getReference();
30 interface WithStatus extends DocumentationGroup {
32 @Nullable StatusStatement getStatus();