using System.Xml.Serialization; namespace XSDVisualiser.Core; /// /// Attribute definition extracted from XSD. /// public class AttributeInfo { /// /// Local name of the attribute. /// [XmlAttribute] public string? Name { get; set; } /// /// Namespace URI of the attribute, if any. /// [XmlAttribute] public string? Namespace { get; set; } /// /// Usage of the attribute: optional | required | prohibited. /// [XmlAttribute] public string? Use { get; set; } /// /// The qualified type name if the attribute has a named type. /// [XmlAttribute] public string? TypeName { get; set; } /// /// Built-in XML Schema type code name when applicable. /// [XmlAttribute] public string? BuiltInType { get; set; } /// /// Optional constraints applied to the attribute's simple type. /// [XmlElement] public ConstraintSet? Constraints { get; set; } }