This namespace contains APIs for interacting with annotations.
Methods
-
staticbelhop.annotations.getType(prefix, cb)
-
Get an annotation type.
Name Type Description prefixstring The annotation type’s prefix
cbbelhop.Callback An
belhop.AnnotationType;nullif not found -
staticbelhop.annotations.getTypes(cb)
-
Get annotation types.
Name Type Description cbbelhop.Callback Zero or more
belhop.AnnotationType -
staticbelhop.annotations.getValue(prefix, value, cb)
-
Get an annotation value.
Name Type Description prefixstring The annotation type’s prefix
valuestring The annotation type’s value
cbbelhop.Callback belhop.AnnotationValueif it exists;nullif not -
staticbelhop.annotations.search(searchTerm, cb)
-
Search across all annotation values.
Name Type Description searchTermstring Search term
cbbelhop.Callback Zero or more
belhop.AnnotationValue -
staticbelhop.annotations.searchByType(type, searchTerm, cb)
-
Search annotation values of a specific type.
Name Type Description typestring | belhop.AnnotationType The annotation type
searchTermstring Search term
cbbelhop.Callback Zero or more
belhop.AnnotationValue