Show / Hide Table of Contents

Class Dependency

A reference to an interface that is required as dependency.

Inheritance
Object
XmlUnknown
FeedElement
Restriction
Dependency
Runner
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<Restriction>
IEquatable<Restriction>
IInterfaceUriBindingContainer
IInterfaceUri
IBindingContainer
ICloneable<Dependency>
IEquatable<Dependency>
Inherited Members
Restriction.DistributionZeroInstall
Restriction.Equals(Restriction)
Restriction.InterfaceUri
Restriction.OS
Restriction.Versions
Restriction.InterfaceUriString
Restriction.VersionsString
Restriction.Constraints
Restriction.Distributions
Restriction.DistributionsString
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 class Dependency : Restriction, IInterfaceUriBindingContainer, IInterfaceUri, IBindingContainer

Constructors

Dependency()

Declaration
public Dependency()

Properties

Bindings

A list of Bindings for Implementations to locate Dependencys.

Declaration
public List<Binding> Bindings { get; }
Property Value
Type Description
List<Binding>

Importance

Controls how important this dependency is (i.e. whether ignoring it is an option).

Declaration
public Importance Importance { get; set; }
Property Value
Type Description
Importance

Use

This can be used to indicate that this dependency is only needed in some cases. Deprecated; use Commands instead.

Declaration
public string Use { get; set; }
Property Value
Type Description
String

XmlTagName

Declaration
protected override string XmlTagName { get; }
Property Value
Type Description
String
Overrides
Restriction.XmlTagName

Methods

Clone()

Creates a deep copy of this Dependency instance.

Declaration
public override Restriction Clone()
Returns
Type Description
Restriction

The new copy of the Dependency.

Overrides
Restriction.Clone()

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Restriction.Equals(Object)

Equals(Dependency)

Declaration
public bool Equals(Dependency other)
Parameters
Type Name Description
Dependency other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Restriction.GetHashCode()

IsApplicable(Requirements)

Determines whether this reference is applicable for the given requirements.

Declaration
public override bool IsApplicable(Requirements requirements)
Parameters
Type Name Description
Requirements requirements
Returns
Type Description
Boolean
Overrides
Restriction.IsApplicable(Requirements)

Normalize()

Flattens inheritance structures, Converts legacy elements, sets default values, etc..

Declaration
public override void Normalize()
Overrides
Restriction.Normalize()
Exceptions
Type Condition
InvalidDataException

A required property is not set or invalid.

ToString()

Returns the dependency in the form "Interface (Use)". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Restriction.ToString()

Operators

Equality(Dependency, Dependency)

Indicates whether the object on the left is equal to the object on the right.

Declaration
public static bool operator ==(Dependency left, Dependency right)
Parameters
Type Name Description
Dependency left

The left object

Dependency right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(Dependency, Dependency)

Indicates whether the object on the left is not equal to the object on the right.

Declaration
public static bool operator !=(Dependency left, Dependency right)
Parameters
Type Name Description
Dependency left

The left object

Dependency right

The right object

Returns
Type Description
Boolean

true if the objects are not equal; otherwise, false.

Implements

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