Captures the behavior of container identifiers in a certain storage configuration.

Hierarchy

  • IdentifierStrategy

Implemented by

Properties

contains: ((container: ResourceIdentifier, identifier: ResourceIdentifier, transitive: boolean) => boolean)

Type declaration

    • (container: ResourceIdentifier, identifier: ResourceIdentifier, transitive: boolean): boolean
    • Checks if the given container would contain the given identifier. This does not check that either of these identifiers actually exist. This is similar to calling getParentContainer on an identifier and comparing the result.

      If transitive is false this only checks if container is the direct parent container of identifier.

      Parameters

      Returns boolean

getParentContainer: ((identifier: ResourceIdentifier) => ResourceIdentifier)

Type declaration

isRootContainer: ((identifier: ResourceIdentifier) => boolean)

Type declaration

    • (identifier: ResourceIdentifier): boolean
    • Checks if the input corresponds to the identifier of a root container. This does not check if this identifier actually exists.

      Parameters

      Returns boolean

supportsIdentifier: ((identifier: ResourceIdentifier) => boolean)

Type declaration

    • (identifier: ResourceIdentifier): boolean
    • Verifies if this identifier is supported. This does not check if this identifier actually exists, but checks if the identifier is in scope for this class.

      Parameters

      Returns boolean