Show / Hide Table of Contents

Class FeedElement

Abstract base class for XML serializable classes that are part of the Zero Install feed model.

Inheritance
Object
XmlUnknown
FeedElement
ArgBase
Binding
Category
Command
Constraint
CopyFromStep
EntryPoint
Icon
InterfaceReference
RemoveStep
RenameStep
Restriction
RetrievalMethod
TargetBase
WorkingDir
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
Inherited Members
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 FeedElement : XmlUnknown
Remarks

Does not include ZeroInstall.Model.Capabilities.

Constructors

FeedElement()

Declaration
protected FeedElement()

Properties

IfZeroInstallVersion

Only process this element if the current Zero Install version matches the range.

Declaration
public VersionRange IfZeroInstallVersion { get; set; }
Property Value
Type Description
VersionRange

IfZeroInstallVersionString

Used for XML serialization.

Declaration
public string IfZeroInstallVersionString { get; set; }
Property Value
Type Description
String
See Also
IfZeroInstallVersion

Methods

Equals(Object)

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

Equals(FeedElement)

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

FilterMismatch(IRecipeStep)

Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.

Declaration
protected static bool FilterMismatch(IRecipeStep step)
Parameters
Type Name Description
IRecipeStep step
Returns
Type Description
Boolean

FilterMismatch<T>(T)

Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.

Declaration
protected static bool FilterMismatch<T>(T element)
    where T : FeedElement
Parameters
Type Name Description
T element
Returns
Type Description
Boolean
Type Parameters
Name Description
T

GetHashCode()

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

Operators

Equality(FeedElement, FeedElement)

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

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

The left object

FeedElement right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(FeedElement, FeedElement)

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

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

The left object

FeedElement right

The right object

Returns
Type Description
Boolean

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

Implements

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