using System;
namespace JD.TeaBoxAddinSystem.Addins.Attributes
{
///
/// Attribute used to serialize s and s automatically.
///
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class NodeAttributeAttribute : StringPropertyConverterAttribute
{
#region Constructor
///
/// Constructor.
///
public NodeAttributeAttribute()
: this(string.Empty, false, string.Empty)
{
}
///
/// Constructor.
///
/// Name of the attribute.
public NodeAttributeAttribute(string name)
: this(name, false, string.Empty)
{
}
///
/// Constructor.
///
/// Whether this attribute is required.
public NodeAttributeAttribute(bool required)
: this(string.Empty, required, string.Empty)
{
}
///
/// Constructor.
///
/// Name of the attribute.
/// Whether this attribute is required.
public NodeAttributeAttribute(string name, bool required)
: this(name, required, string.Empty)
{
}
///
/// Constructor.
///
/// Name of the attribute.
/// Optional description of the attribute.
public NodeAttributeAttribute(string name, string description)
: this(name, false, description)
{
}
///
/// Constructor.
///
/// Name of the attribute.
/// Whether this attribute is required.
/// Optional description of the attribute.
public NodeAttributeAttribute(string name, bool required, string description)
: base(name, required, description)
{
}
#endregion
}
}