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.sal.binding.model.api;
10 import java.util.List;
13 * Every Java interface has to be specified with:
15 * <li><code>package</code> that belongs into</li>
16 * <li><code>interface</code> name (with commentary that <b>SHOULD</b> be
17 * present to proper define interface and base <i>contracts</i> specified for
19 * <li>Each Generated Type can define list of types that Generated Type can
20 * implement to extend it's definition (i.e. interface extends list of
21 * interfaces or java class implements list of interfaces)</li>
22 * <li>Each Generated Type can contain multiple enclosed definitions of
23 * Generated Types (i.e. interface can contain N enclosed interface definitions
24 * or enclosed classes)</li>
25 * <li><code>enum</code> and <code>constant</code> definitions (i.e. each
26 * constant definition is by default defined as <code>public static final</code>
27 * + type (either primitive or object) and constant name</li>
28 * <li><code>method definitions</code> with specified input parameters (with
29 * types) and return values</li>
32 * By the definition of the interface constant, enum, enclosed types and method
33 * definitions MUST be public, so there is no need to specify the scope of
36 public interface GeneratedType extends Type, DocumentedType {
39 * Returns the parent type if Generated Type is defined as enclosing type,
40 * otherwise returns <code>null</code>
42 * @return the parent type if Generated Type is defined as enclosing type,
43 * otherwise returns <code>null</code>
48 * Returns comment string associated with Generated Type.
50 * @return comment string associated with Generated Type.
55 * Returns List of annotation definitions associated with generated type.
57 * @return List of annotation definitions associated with generated type.
59 List<AnnotationType> getAnnotations();
62 * Returns <code>true</code> if The Generated Type is defined as abstract.
64 * @return <code>true</code> if The Generated Type is defined as abstract.
69 * Returns List of Types that Generated Type will implement.
71 * @return List of Types that Generated Type will implement.
73 List<Type> getImplements();
76 * Returns List of enclosing Generated Types.
78 * @return List of enclosing Generated Types.
80 List<GeneratedType> getEnclosedTypes();
83 * Returns List of all Enumerator definitions associated with Generated
86 * @return List of all Enumerator definitions associated with Generated
89 List<Enumeration> getEnumerations();
92 * Returns List of Constant definitions associated with Generated Type.
94 * @return List of Constant definitions associated with Generated Type.
96 List<Constant> getConstantDefinitions();
99 * Returns List of Method Definitions associated with Generated Type.
101 * List does not contains getters and setters for properties.
103 * @return List of Method Definitions associated with Generated Type.
105 List<MethodSignature> getMethodDefinitions();
108 * Returns List of Properties that are declared for Generated Transfer
111 * @return List of Properties that are declared for Generated Transfer
114 List<GeneratedProperty> getProperties();