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 java.util.List;
15 * Every Java interface has to be specified with:
17 * <li><code>package</code> that belongs into</li>
18 * <li><code>interface</code> name (with commentary that <b>SHOULD</b> be
19 * present to proper define interface and base <i>contracts</i> specified for
21 * <li>Each Generated Type can define list of types that Generated Type can
22 * implement to extend it's definition (i.e. interface extends list of
23 * interfaces or java class implements list of interfaces)</li>
24 * <li>Each Generated Type can contain multiple enclosed definitions of
25 * Generated Types (i.e. interface can contain N enclosed interface definitions
26 * or enclosed classes)</li>
27 * <li><code>enum</code> and <code>constant</code> definitions (i.e. each
28 * constant definition is by default defined as <code>public static final</code>
29 * + type (either primitive or object) and constant name</li>
30 * <li><code>method definitions</code> with specified input parameters (with
31 * types) and return values</li>
34 * By the definition of the interface constant, enum, enclosed types and method
35 * definitions MUST be public, so there is no need to specify the scope of
39 public interface GeneratedType extends Type, DocumentedType {
42 * Returns the parent type if Generated Type is defined as enclosing type,
43 * otherwise returns <code>null</code>
45 * @return the parent type if Generated Type is defined as enclosing type,
46 * otherwise returns <code>null</code>
51 * Returns comment string associated with Generated Type.
53 * @return comment string associated with Generated Type.
58 * Returns List of annotation definitions associated with generated type.
60 * @return List of annotation definitions associated with generated type.
62 List<AnnotationType> getAnnotations();
65 * Returns <code>true</code> if The Generated Type is defined as abstract.
67 * @return <code>true</code> if The Generated Type is defined as abstract.
72 * Returns List of Types that Generated Type will implement.
74 * @return List of Types that Generated Type will implement.
76 List<Type> getImplements();
79 * Returns List of enclosing Generated Types.
81 * @return List of enclosing Generated Types.
83 List<GeneratedType> getEnclosedTypes();
86 * Returns List of all Enumerator definitions associated with Generated
89 * @return List of all Enumerator definitions associated with Generated
92 List<Enumeration> getEnumerations();
95 * Returns List of Constant definitions associated with Generated Type.
97 * @return List of Constant definitions associated with Generated Type.
99 List<Constant> getConstantDefinitions();
102 * Returns List of Method Definitions associated with Generated Type.
104 * List does not contains getters and setters for properties.
106 * @return List of Method Definitions associated with Generated Type.
108 List<MethodSignature> getMethodDefinitions();
111 * Returns List of Properties that are declared for Generated Transfer
114 * @return List of Properties that are declared for Generated Transfer
117 List<GeneratedProperty> getProperties();