Class PropertyPath
Represents a path to a given property within an object graph such as an item within a template.
Implements
Inherited Members
Namespace: Firefly.CloudFormationParser.Utils
Assembly: Firefly.CloudFormationParser.dll
Syntax
public class PropertyPath : Stack<string>, IReadOnlyCollection<string>, IEnumerable<string>, ICollection, IEnumerable, IEquatable<PropertyPath>
Constructors
| Improve this Doc View SourcePropertyPath()
Initializes a new instance of the PropertyPath class.
Declaration
public PropertyPath()
PropertyPath(IEnumerable<String>)
Initializes a new instance of the PropertyPath class.
Declaration
public PropertyPath(IEnumerable<string> pathComponents)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | pathComponents | The path components. |
Properties
| Improve this Doc View SourceDepth
Gets the path depth (number of path components on the stack).
Declaration
public int Depth { get; }
Property Value
Type | Description |
---|---|
Int32 | The depth. |
Path
Gets the current path.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
String | The path. |
Methods
| Improve this Doc View SourceClone()
Clones this instance.
Declaration
public PropertyPath Clone()
Returns
Type | Description |
---|---|
PropertyPath | A new PropertyPath with the current stack of elements |
Equals(PropertyPath)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(PropertyPath other)
Parameters
Type | Name | Description |
---|---|---|
PropertyPath | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Improve this Doc View SourceGetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
| Improve this Doc View SourceToJsonPath()
Converts this path to a JSON path suitable for use with SelectToken
Declaration
public string ToJsonPath()
Returns
Type | Description |
---|---|
String | JSON path |
See Also
Operators
| Improve this Doc View SourceEquality(PropertyPath, PropertyPath)
Implements the operator ==.
Declaration
public static bool operator ==(PropertyPath left, PropertyPath right)
Parameters
Type | Name | Description |
---|---|---|
PropertyPath | left | The left. |
PropertyPath | right | The right. |
Returns
Type | Description |
---|---|
Boolean | The result of the operator. |
Inequality(PropertyPath, PropertyPath)
Implements the operator !=.
Declaration
public static bool operator !=(PropertyPath left, PropertyPath right)
Parameters
Type | Name | Description |
---|---|---|
PropertyPath | left | The left. |
PropertyPath | right | The right. |
Returns
Type | Description |
---|---|
Boolean | The result of the operator. |