Home Manual Reference Source
public class | source

MetadataRegistry

Registry for existing resource Metadata.

Method Summary

Public Methods
public

Checks whether there's a metadata for the specified template.

public

Returns metadata associated with the specified address template.

Public Methods

public contains(template: AddressTemplate | String): boolean source

Checks whether there's a metadata for the specified template.

Params:

NameTypeAttributeDescription
template AddressTemplate | String

The address template to check.

Return:

boolean

true if the registry contains metadata for the given template, false otherwise

public lookup(template: AddressTemplate | String): Metadata source

Returns metadata associated with the specified address template.

Params:

NameTypeAttributeDescription
template AddressTemplate | String

The address template to lookup.

Return:

Metadata

the metadata for the specified template

Throw:

*

MissingMetadataException if no metadata for the given template exists