Class RefItem
A JSON-pointer style reference to another item in the document. Follows the docling RefItem convention (e.g. "#/texts/0", "#/tables/1").
public class RefItem : IEquatable<RefItem>
- Inheritance
-
RefItem
- Implements
- Inherited Members
Constructors
RefItem()
public RefItem()
RefItem(string)
public RefItem(string @ref)
Parameters
refstring
Properties
Ref
The JSON pointer reference string (e.g. "#/texts/0").
public string Ref { get; set; }
Property Value
Methods
Equals(RefItem?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RefItem? other)
Parameters
otherRefItemAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Resolve(DoclingDocument)
Resolves this reference against the given document, returning the referenced NodeItem.
public NodeItem? Resolve(DoclingDocument doc)
Parameters
docDoclingDocument
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.