Namespace: annotations

belhop. annotations

This namespace contains APIs for interacting with annotations.

Methods

Get an annotation type.

Name Type Description
prefix string

The annotation type’s prefix

cb belhop.Callback

An belhop.AnnotationType; null if not found

Get annotation types.

Name Type Description
cb belhop.Callback

Zero or more belhop.AnnotationType

staticbelhop.annotations.getValue(prefix, value, cb)

Get an annotation value.

Name Type Description
prefix string

The annotation type’s prefix

value string

The annotation type’s value

cb belhop.Callback

belhop.AnnotationValue if it exists; null if not

Search across all annotation values.

Name Type Description
searchTerm string

Search term

cb belhop.Callback

Zero or more belhop.AnnotationValue

staticbelhop.annotations.searchByType(type, searchTerm, cb)

Search annotation values of a specific type.

Name Type Description
type string | belhop.AnnotationType

The annotation type

searchTerm string

Search term

cb belhop.Callback

Zero or more belhop.AnnotationValue