2 * Copyright (c) 2014 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.mdsal.binding.model.api.type.builder;
10 import org.opendaylight.mdsal.binding.model.api.AccessModifier;
11 import org.opendaylight.mdsal.binding.model.api.Type;
13 public interface TypeMemberBuilder<T extends TypeMemberBuilder<T>> {
16 * The method creates new AnnotationTypeBuilder containing specified package
17 * name an annotation name. <br>
18 * Neither the package name or annotation name can contain <code>null</code>
19 * references. In case that any of parameters contains <code>null</code> the
20 * method SHOULD thrown {@link IllegalArgumentException}
23 * Package Name of Annotation Type
25 * Name of Annotation Type
26 * @return <code>new</code> instance of Annotation Type Builder.
28 AnnotationTypeBuilder addAnnotation(final String packageName, final String name);
31 * Returns the name of property.
33 * @return the name of property.
38 * Adds return Type into Builder definition for Generated Property. <br>
39 * The return Type MUST NOT be <code>null</code>, otherwise the method
40 * SHOULD throw {@link IllegalArgumentException}
43 * Return Type of property.
45 T setReturnType(final Type returnType);
47 AccessModifier getAccessModifier();
50 * Sets the access modifier of property.
53 * Access Modifier value.
55 T setAccessModifier(final AccessModifier modifier);
58 * Adds String definition of comment into Method Signature definition. <br>
59 * The comment String MUST NOT contain any comment specific chars (i.e.
60 * "/**" or "//") just plain String text description.
65 T setComment(final String comment);
68 * Sets the flag final for method signature. If this is set the method will
69 * be prohibited from overriding. <br>
70 * This setting is irrelevant for methods designated to be defined in
71 * interface definitions because interface can't have final method.
76 T setFinal(final boolean isFinal);
78 T setStatic(final boolean isStatic);