getAnnotation

Lookup an existing annotation by term name, or throw an exception if the annotation is not found.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.EnumValue#annotations EnumValue.annotations} and {@link com.sap.cloud.mobile.kotlin.odata.AnnotationMap#get(kotlin.String) AnnotationMap.get}, for looking up annotations that might not exist.

Return

The annotation.

Parameters

term

The term name.