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).
Implements
Inherited Members
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
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
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
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 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. |