2 * Copyright (c) 2016 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
9 package org.opendaylight.mdsal.binding2.model.api;
11 import com.google.common.annotations.Beta;
12 import com.google.common.base.Optional;
13 import java.util.List;
14 import org.opendaylight.yangtools.yang.common.QName;
17 * Implementing this interface allows an object to hold information which are
18 * essential for generating java doc from type definition.
21 public interface DocumentedType {
24 * Returns a string that contains a human-readable textual description of
27 * @return a human-readable textual description of type definition.
29 Optional<String> getDescription();
32 * Returns a string that is used to specify a textual cross-reference to an
33 * external document, either another module that defines related management
34 * information, or a document that provides additional information relevant
37 * @return a textual cross-reference to an external document.
39 Optional<String> getReference();
42 * Returns a list of QNames which represent schema path in schema tree from
43 * actual concrete type to the root.
45 * @return a schema path in schema tree from actual concrete schema node
46 * identifier to the root.
48 List<QName> getSchemaPath();
51 * Returns the name of the module, in which generated type was specified.
53 * @return the name of the module, in which generated type was specified.
55 String getModuleName();