C# Class ZeroInstall.Store.Model.Element

Inheritance: TargetBase, IBindingContainer, IDependencyContainer, ICloneable
Show file Open project: 0install/0install-win Class Usage Examples

Private Properties

Property Type Description
GetCommand Command
ICloneable object
InheritFrom void
this Command

Public Methods

Method Description
Clone ( ) : Element

Creates a deep copy of this Element instance.

ContainsCommand ( string name ) : bool

Determines whether Commands contains a Command with a specific name.

GetHashCode ( ) : int
Normalize ( [ feedUri ) : void

Sets missing default values and handles legacy elements.

This method should be called to prepare a Feed for solver processing. Do not call it if you plan on serializing the feed again since it may loose some of its structure.

Protected Methods

Method Description
CloneFromTo ( [ from, [ to ) : void

Copies all known values from one instance to another. Helper method for instance cloning.

Equals ( Element other ) : bool

Private Methods

Method Description
GetCommand ( [ name ) : Command
ICloneable ( ) : object
InheritFrom ( [ parent ) : void

Transfers attributes from another Element object to this one. Existing values are not replaced. Provides an inheritance-like relation.

this ( [ name ) : Command

Method Details

Clone() public abstract method

Creates a deep copy of this Element instance.
public abstract Clone ( ) : Element
return Element

CloneFromTo() protected static method

Copies all known values from one instance to another. Helper method for instance cloning.
protected static CloneFromTo ( [ from, [ to ) : void
from [
to [
return void

ContainsCommand() public method

Determines whether Commands contains a Command with a specific name.
public ContainsCommand ( string name ) : bool
name string The to look for; for none.
return bool

Equals() protected method

protected Equals ( Element other ) : bool
other Element
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Normalize() public method

Sets missing default values and handles legacy elements.
This method should be called to prepare a Feed for solver processing. Do not call it if you plan on serializing the feed again since it may loose some of its structure.
public Normalize ( [ feedUri ) : void
feedUri [ The feed the data was originally loaded from.
return void