Options
All
  • Public
  • Public/Protected
  • All
Menu

A strategy for handling auxiliary related ResourceIdentifiers.

Hierarchy

Implemented by

Index

Properties

getAssociatedIdentifier

getAssociatedIdentifier: (identifier: ResourceIdentifier) => ResourceIdentifier

Type declaration

getAuxiliaryIdentifier

getAuxiliaryIdentifier: (identifier: ResourceIdentifier) => ResourceIdentifier

Type declaration

    • Returns the identifier of the auxiliary resource corresponding to the given resource. This does not guarantee that this auxiliary resource exists.

      Should error if there are multiple results: see getAuxiliaryIdentifiers.

      Parameters

      • identifier: ResourceIdentifier

        The ResourceIdentifier of which we need the corresponding auxiliary resource.

      Returns ResourceIdentifier

      The ResourceIdentifier of the corresponding auxiliary resource.

getAuxiliaryIdentifiers

getAuxiliaryIdentifiers: (identifier: ResourceIdentifier) => ResourceIdentifier[]

Type declaration

    • Returns all the identifiers of corresponding auxiliary resources. This can be used when there are potentially multiple results. In the case of a single result this should be an array containing the result of getAuxiliaryIdentifier.

      Parameters

      • identifier: ResourceIdentifier

        The ResourceIdentifier of which we need the corresponding auxiliary resources.

      Returns ResourceIdentifier[]

      The ResourceIdentifiers of the corresponding auxiliary resources.

isAuxiliaryIdentifier

isAuxiliaryIdentifier: (identifier: ResourceIdentifier) => boolean

Type declaration

    • Checks if the input identifier corresponds to an auxiliary resource. This does not check if that auxiliary resource exists, only if the identifier indicates that there could be an auxiliary resource there.

      Parameters

      Returns boolean

      true if the input identifier points to an auxiliary resource.