Class RenameStep
Renames or moves a file or directory. It is an error if the source or destination are outside the implementation.
Implements
Inherited Members
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class RenameStep : FeedElement, IRecipeStep
Constructors
RenameStep()
Declaration
public RenameStep()
Properties
Destination
The destination file or directory relative to the implementation root as a Unix-style path.
Declaration
public string Destination { get; set; }
Property Value
Type | Description |
---|---|
String |
Source
The source file or directory relative to the implementation root as a Unix-style path.
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Clone()
Creates a deep copy of this RenameStep instance.
Declaration
public IRecipeStep Clone()
Returns
Type | Description |
---|---|
IRecipeStep | The new copy of the RenameStep. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Equals(RenameStep)
Declaration
public bool Equals(RenameStep other)
Parameters
Type | Name | Description |
---|---|---|
RenameStep | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Normalize(FeedUri)
Converts legacy elements, sets default values, etc..
Declaration
public void Normalize(FeedUri feedUri = null)
Parameters
Type | Name | Description |
---|---|---|
FeedUri | feedUri | The feed the data was originally loaded from. |
Exceptions
Type | Condition |
---|---|
UriFormatException | Href is relative and |
ToString()
Returns the rename step in the form "Source => Destination". Not safe for parsing!
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(RenameStep, RenameStep)
Indicates whether the object on the left is equal to the object on the right.
Declaration
public static bool operator ==(RenameStep left, RenameStep right)
Parameters
Type | Name | Description |
---|---|---|
RenameStep | left | The left object |
RenameStep | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are equal; otherwise, false. |
Inequality(RenameStep, RenameStep)
Indicates whether the object on the left is not equal to the object on the right.
Declaration
public static bool operator !=(RenameStep left, RenameStep right)
Parameters
Type | Name | Description |
---|---|---|
RenameStep | left | The left object |
RenameStep | right | The right object |
Returns
Type | Description |
---|---|
Boolean | true if the objects are not equal; otherwise, false. |