Interface AnnotationType
- All Superinterfaces:
org.opendaylight.yangtools.concepts.Identifiable<JavaTypeName>,Type
The Annotation Type interface is designed to hold information about annotation for any type that could be annotated
in Java.
For sake of simplicity the Annotation Type is not designed to model exact behaviour of annotation mechanism, but just to hold information needed to model annotation over java Type definition.
For sake of simplicity the Annotation Type is not designed to model exact behaviour of annotation mechanism, but just to hold information needed to model annotation over java Type definition.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAnnotation Type parameter interface. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif annotation contains parameters.Returns the List of Annotations.getParameter(String paramName) Returns Parameter Definition assigned for given parameter name.Returns List of parameter names.Returns List of all parameters assigned to Annotation Type.Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifierMethods inherited from interface org.opendaylight.mdsal.binding.model.api.Type
getFullyQualifiedName, getName, getPackageName
-
Method Details
-
getAnnotations
List<AnnotationType> getAnnotations()Returns the List of Annotations. Each Annotation Type MAY have defined multiple Annotations.- Returns:
- the List of Annotations.
-
getParameter
Returns Parameter Definition assigned for given parameter name. If Annotation does not contain parameter with specified param name, the method MAY returnnullvalue.- Parameters:
paramName- Parameter Name- Returns:
- Parameter Definition assigned for given parameter name.
-
getParameters
List<AnnotationType.Parameter> getParameters()Returns List of all parameters assigned to Annotation Type.- Returns:
- List of all parameters assigned to Annotation Type.
-
getParameterNames
Returns List of parameter names.- Returns:
- List of parameter names.
-
containsParameters
boolean containsParameters()Returnstrueif annotation contains parameters.- Returns:
trueif annotation contains parameters.
-