Show / Hide Table of Contents

Class ImplementationBase

Information for identifying an implementation of a Feed. Common base for Implementation and ImplementationSelection.

Inheritance
Object
XmlUnknown
FeedElement
TargetBase
Element
ImplementationBase
Implementation
ImplementationSelection
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
IEquatable<TargetBase>
IBindingContainer
IDependencyContainer
ICloneable<Element>
IEquatable<Element>
IEquatable<ImplementationBase>
Inherited Members
Element.ReleaseDateFormat
Element.ReleasedVerbatim
Element.ContainsCommand(String)
Element.GetCommand(String)
Element.EnsureAttributes()
Element.Clone()
Element.CloneFromTo(Element, Element)
Element.Equals(Element)
Element.VersionString
Element.VersionModifier
Element.Released
Element.ReleasedString
Element.Stability
Element.RolloutPercentage
Element.License
Element.Main
Element.SelfTest
Element.DocDir
Element.Dependencies
Element.Restrictions
Element.Bindings
Element.Commands
Element.Item[String]
TargetBase.CloneFromTo(TargetBase, TargetBase)
TargetBase.Equals(TargetBase)
TargetBase.Languages
TargetBase.Architecture
TargetBase.LanguagesString
TargetBase.ArchitectureString
FeedElement.FilterMismatch<T>(T)
FeedElement.FilterMismatch(IRecipeStep)
FeedElement.Equals(FeedElement)
FeedElement.IfZeroInstallVersion
FeedElement.IfZeroInstallVersionString
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
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
Element.Version

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
Element.Equals(Object)

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
Element.GetHashCode()

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
Element.Normalize(FeedUri)
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.

Implements

System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
IBindingContainer
IDependencyContainer
ICloneable<T>
System.IEquatable<T>
System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher et al