namespace Ganss.Xss;
///
/// Represents an Internationalized Resource Identifier.
///
///
/// Initializes a new instance of the class.
///
/// The value.
/// The scheme.
public class Iri(string value, string? scheme = null)
{
///
/// Gets or sets the value of the IRI.
///
///
/// The value of the IRI.
///
public string Value { get; private set; } = value;
///
/// Gets a value indicating whether the IRI is absolute.
///
///
/// true if the IRI is absolute; otherwise, false.
///
public bool IsAbsolute => !string.IsNullOrEmpty(Scheme);
///
/// Gets or sets the scheme of the IRI, e.g. "https".
///
///
/// The scheme of the IRI.
///
public string? Scheme { get; private set; } = scheme;
}