C# Class Google.VersionHandler.FileMetadataSet

Set of FileMetadata grouped by filename with metadata stripped. For example, "stuff_tEditor_v1.0.0.dll" and "stuff_tEditor_v1.0.1.dll" will be referenced by FileMetadataVersions using the key "stuff.dll".
Mostrar archivo Open project: googlesamples/unity-jar-resolver

Public Methods

Method Description
Add ( FileMetadata metadata ) : void

Add file metadata to the set.

EnableMostRecentPlugins ( ) : bool

For each plugin (DLL) referenced by this set, disable targeting for all versions and re-enable platform targeting for the most recent version.

FileMetadataSet ( ) : UnityEngine

Construct an instance.

FindMetadata ( string filenameCanonical, long version ) : FileMetadata

Search for metadata for an existing file given a canonical filename and version.

FindWithPendingUpdates ( FileMetadataSet metadataSet ) : FileMetadataSet

Filter the a set for files which have multiple versions and those with metadata that selects the set of target platforms.

ParseFromFilenames ( string filenames ) : FileMetadataSet

Parse metadata from a set of filenames.

Method Details

Add() public method

Add file metadata to the set.
public Add ( FileMetadata metadata ) : void
metadata FileMetadata
return void

EnableMostRecentPlugins() public method

For each plugin (DLL) referenced by this set, disable targeting for all versions and re-enable platform targeting for the most recent version.
public EnableMostRecentPlugins ( ) : bool
return bool

FileMetadataSet() public method

Construct an instance.
public FileMetadataSet ( ) : UnityEngine
return UnityEngine

FindMetadata() public method

Search for metadata for an existing file given a canonical filename and version.
public FindMetadata ( string filenameCanonical, long version ) : FileMetadata
filenameCanonical string Name of the file set to search /// for.
version long Version number of the file in the set.
return FileMetadata

FindWithPendingUpdates() public static method

Filter the a set for files which have multiple versions and those with metadata that selects the set of target platforms.
public static FindWithPendingUpdates ( FileMetadataSet metadataSet ) : FileMetadataSet
metadataSet FileMetadataSet Set to filter.
return FileMetadataSet

ParseFromFilenames() public static method

Parse metadata from a set of filenames.
public static ParseFromFilenames ( string filenames ) : FileMetadataSet
filenames string
return FileMetadataSet