public interface AnnotationTypeBuilder extends Type, org.opendaylight.yangtools.concepts.Builder<AnnotationType>
Type
interface. The Annotation Type contains set of methods which are
capable to provide information about other Annotation Types and Annotation
Parameters.AnnotationType
Modifier and Type | Method and Description |
---|---|
AnnotationTypeBuilder |
addAnnotation(String packageName,
String name)
The method creates new AnnotationTypeBuilder containing specified package
name an annotation name.
|
boolean |
addParameter(String paramName,
String value)
Adds the parameter into List of parameters for Annotation Type.
|
boolean |
addParameters(String paramName,
List<String> values)
Adds the parameter with specified List of parameter values into List of
parameters for Annotation Type.
|
AnnotationType |
build()
Returns
new immutable instance of Annotation Type
with values assigned in current instance of Annotation Type Builder. |
getFullyQualifiedName, getName, getPackageName
AnnotationTypeBuilder addAnnotation(String packageName, String name)
null
references. In case that any of parameters contains null
the
method SHOULD thrown IllegalArgumentException
packageName
- Package Name of Annotation Typename
- Name of Annotation Typenew
instance of Annotation Type Builder.boolean addParameter(String paramName, String value)
null
references.
In case that any of parameters contains null
the method
SHOULD thrown IllegalArgumentException
paramName
- Parameter Namevalue
- Parameter Valuetrue
if the parameter has been successfully assigned for Annotation Typeboolean addParameters(String paramName, List<String> values)
null
references.
In case that any of parameters contains null
the method
SHOULD thrown IllegalArgumentException
paramName
- Parameter Namevalues
- List of Values bounded to Parameter Nametrue
if the parameter has been successfully assigned for Annotation TypeAnnotationType build()
new
immutable instance of Annotation Type
with values assigned in current instance of Annotation Type Builder. build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AnnotationType,IllegalArgumentException>
new
immutable instance of Annotation Type.Copyright © 2019 OpenDaylight. All rights reserved.