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