maxon.AssetIdentifierInterface¶
Description¶
The base interface of maxon.AssetBaseInterface
and maxon.AssetLinkInterface
.
It contains their common methods to obtain type, identifier and version.
Attributes¶
Methods Signature¶
|
Returns the identifier of this asset. |
Returns the identifier and version of this asset as a tuple. |
|
Returns the identifier of the |
|
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
-
AssetIdentifierInterface.
GetIdAndVersion
()¶ Returns the identifier and version of this asset as a tuple.
- Returns
(identifier, version) of this asset.
- Return type
-
AssetIdentifierInterface.
GetTypeId
()¶ Returns the identifier of the
maxon.AssetType
of this asset.- Returns
Identifier of the
maxon.AssetType
of this asset.- Return type
-
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