Show / Hide Table of Contents

Class Group

All attributes of a group are inherited by any child Groups and Implementations as defaults, but can be overridden there. All Dependencys and Bindings are inherited (sub-groups may add more Dependencys and Bindings to the list, but cannot remove any).

Inheritance
Object
XmlUnknown
FeedElement
TargetBase
Element
Group
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
IEquatable<TargetBase>
IBindingContainer
IDependencyContainer
ICloneable<Element>
IEquatable<Element>
IElementContainer
IEquatable<Group>
Inherited Members
Element.ReleaseDateFormat
Element.ReleasedVerbatim
Element.ContainsCommand(String)
Element.GetCommand(String)
Element.EnsureAttributes()
Element.CloneFromTo(Element, Element)
Element.Equals(Element)
Element.Version
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 sealed class Group : Element, IBindingContainer, IDependencyContainer, IElementContainer

Constructors

Group()

Declaration
public Group()

Properties

Elements

A list of Groups and Implementations contained within this group.

Declaration
public List<Element> Elements { get; }
Property Value
Type Description
List<Element>

Methods

Clone()

Creates a deep copy of this Element instance.

Declaration
public override Element Clone()
Returns
Type Description
Element

The new copy of the Element.

Overrides
Element.Clone()

CloneGroup()

Creates a deep copy of this Group instance.

Declaration
public Group CloneGroup()
Returns
Type Description
Group

The new copy of the Group.

Equals(Object)

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

Equals(Group)

Declaration
public bool Equals(Group other)
Parameters
Type Name Description
Group 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 group in the form "Comma-separated list of set values". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(Group, Group)

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

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

The left object

Group right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(Group, Group)

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

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

The left object

Group 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>
IElementContainer
System.IEquatable<T>

See Also

Elements
In This Article
Back to top Copyright Bastian Eicher et al