maxon.AssetIdentifierInterface

Description

The base interface of maxon.AssetBaseInterface and maxon.AssetLinkInterface. It contains their common methods to obtain type, identifier and version.

Inheritance diagram

Inheritance

Parent Class:

Children Classes:

Methods Signature

GetId()

Returns the identifier of this asset.

GetIdAndVersion()

Returns the identifier and version of this asset as a tuple.

GetTypeId()

Returns the identifier of the maxon.AssetType of this asset.

GetVersion()

Returns the version of this asset.

Methods Definition

AssetIdentifierInterface.GetId()

Returns the identifier of this asset. Asset identifiers have to be globally unique.

Returns

Asset identifier (empty for an Asset which doesn’t belong to a repository).

Return type

maxon.Id

AssetIdentifierInterface.GetIdAndVersion()

Returns the identifier and version of this asset as a tuple.

Returns

(identifier, version) of this asset.

Return type

maxon.Tuple [maxon.Id, maxon.Id]

AssetIdentifierInterface.GetTypeId()

Returns the identifier of the maxon.AssetType of this asset.

Returns

Identifier of the maxon.AssetType of this asset.

Return type

maxon.Id

AssetIdentifierInterface.GetVersion()

Returns the version of this asset. | Version identifiers are assigned by repositories when assets are stored, typically this is a hash value derived from the asset content or a UUID. | In general two assets should have equal version identifiers only if they have equal content.

Returns

Asset identifier (empty for an Asset which doesn’t belong to a repository).

Return type

maxon.Id