Class ImplementationBase
Information for identifying an implementation of a Feed. Common base for Implementation and ImplementationSelection.
Inheritance
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public abstract class ImplementationBase : Element, IBindingContainer, IDependencyContainer
Constructors
ImplementationBase()
Declaration
protected ImplementationBase()
Properties
ID
A unique identifier for this implementation. Used when storing implementation-specific user preferences.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
String |
LocalPath
If the feed file is a local file (the interface 'uri' starts with /) then the local-path attribute may contain the pathname of a local directory (either an absolute path or a path relative to the directory containing the feed file).
Declaration
public string LocalPath { get; set; }
Property Value
Type | Description |
---|---|
String |
ManifestDigest
A manifest digest is a means of uniquely identifying an Implementation and verifying its contents.
Declaration
public ManifestDigest ManifestDigest { get; set; }
Property Value
Type | Description |
---|---|
ManifestDigest |
Version
The version number of the implementation.
Declaration
public override ImplementationVersion Version { get; set; }
Property Value
Type | Description |
---|---|
ImplementationVersion |
Overrides
Methods
CloneFromTo(ImplementationBase, ImplementationBase)
Copies all known values from one instance to another. Helper method for instance cloning.
Declaration
protected static void CloneFromTo(ImplementationBase from, ImplementationBase to)
Parameters
Type | Name | Description |
---|---|---|
ImplementationBase | from | |
ImplementationBase | to |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(ImplementationBase)
Declaration
public bool Equals(ImplementationBase other)
Parameters
Type | Name | Description |
---|---|---|
ImplementationBase | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Normalize(FeedUri)
Flattens inheritance structures, Converts legacy elements, sets default values, etc..
Declaration
public override void Normalize(FeedUri feedUri = null)
Parameters
Type | Name | Description |
---|---|---|
FeedUri | feedUri | The feed the data was originally loaded from. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidDataException | A required property is not set or invalid. |
ToString()
Returns the implementation in the form "Comma-separated list of set values". Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(ImplementationBase, ImplementationBase)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(ImplementationBase left, ImplementationBase right)
Parameters
Type | Name | Description |
---|---|---|
ImplementationBase | left | The left object |
ImplementationBase | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Inequality(ImplementationBase, ImplementationBase)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(ImplementationBase left, ImplementationBase right)
Parameters
Type | Name | Description |
---|---|---|
ImplementationBase | left | The left object |
ImplementationBase | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |