21 lines
619 B
C#

using System.Xml.Serialization;
namespace XSDVisualiser.Core;
/// <summary>
/// SimpleType constraints (formerly called facets).
/// </summary>
public class ConstraintSet
{
/// <summary>
/// The qualified name of the base type this constraint set applies to, if any.
/// </summary>
[XmlAttribute] public string? BaseTypeName { get; set; }
/// <summary>
/// A catch-all list of constraint entries for dynamic display and tooling.
/// </summary>
[XmlArray("Constraints")]
[XmlArrayItem("Constraint")]
public List<ConstraintEntry> Constraints { get; set; } = new();
}