In This Topic
���using System;
using System.Xml;
namespace MusicStoreLib
{
/// <summary>
/// This class represents the ComplexType AlbumType
/// </summary>
[LiquidTechnologies.Runtime.XmlObjectInfo(LiquidTechnologies.Runtime.XmlObjectBase.XmlElementGroupType.Sequence,
LiquidTechnologies.Runtime.XmlObjectBase.XmlElementType.Element,
"AlbumType", "", true, false, false)]
public partial class AlbumType : MusicStoreLib.XmlCommonBase
{
#region Constructors
public AlbumType()
{
_elementName = "AlbumType";
Init();
}
public AlbumType(string elementName)
{
_elementName = elementName;
Init();
}
#endregion
#region Initialization methods for the class
protected override void Init()
{
MusicStoreLib.Registration.iRegistrationIndicator = 0;
m_Label = "";
m_RRP = null;
m_ProductCode = "";
m_AlbumName = "";
m_ArtistName = "";
m_Track = new MusicStoreLib.XmlObjectCollection<MusicStoreLib.TrackType>("Track", "", 1, -1, false);
}
#endregion
#region ICloneable Interface
public override object Clone()
{
MusicStoreLib.AlbumType newObject = new MusicStoreLib.AlbumType(_elementName);
newObject.m_Label = m_Label;
newObject.m_RRP = m_RRP;
newObject.m_ProductCode = m_ProductCode;
newObject.m_AlbumName = m_AlbumName;
newObject.m_ArtistName = m_ArtistName;
foreach (MusicStoreLib.TrackType o in m_Track)
newObject.m_Track.Add((MusicStoreLib.TrackType)o.Clone());
return newObject;
}
#endregion
#region Member variables
protected override string TargetNamespace
{
get { return ""; }
}
#region Attribute - Label
[LiquidTechnologies.Runtime.AttributeInfoPrimitive("Label", "", LiquidTechnologies.Runtime.Conversions.ConversionType.type_string, null, LiquidTechnologies.Runtime.WhitespaceUtils.WhitespaceRule.Preserve, "", -1, -1, "", "", "", "", -1, -1, -1, null)]
public string Label
{
get
{
return m_Label;
}
set
{
value = LiquidTechnologies.Runtime.WhitespaceUtils.Preserve(value);
m_Label = value;
}
}
protected string m_Label;
#endregion
#region Attribute - RRP
[LiquidTechnologies.Runtime.AttributeInfoPrimitive("RRP", "", true, LiquidTechnologies.Runtime.Conversions.ConversionType.type_r8, null, LiquidTechnologies.Runtime.WhitespaceUtils.WhitespaceRule.Collapse, "", -1, -1, "", "", "", "", -1, -1, -1, null)]
public double? RRP
{
get
{
return m_RRP;
}
set
{
if (value == null)
{
m_RRP = null;
}
else
{
m_RRP = value;
}
}
}
protected double? m_RRP;
#endregion
#region Attribute - ProductCode
[LiquidTechnologies.Runtime.AttributeInfoPrimitive("ProductCode", "", LiquidTechnologies.Runtime.Conversions.ConversionType.type_string, null, LiquidTechnologies.Runtime.WhitespaceUtils.WhitespaceRule.Preserve, "", -1, -1, "", "", "", "", 15, -1, -1, null)]
public string ProductCode
{
get
{
return m_ProductCode;
}
set
{
value = LiquidTechnologies.Runtime.WhitespaceUtils.Preserve(value);
CheckAttributeRestriction(2, value);
m_ProductCode = value;
}
}
protected string m_ProductCode;
#endregion
#region Attribute - AlbumName
[LiquidTechnologies.Runtime.ElementInfoSeqPrimMnd("AlbumName", "", null, LiquidTechnologies.Runtime.Conversions.ConversionType.type_string, null, LiquidTechnologies.Runtime.WhitespaceUtils.WhitespaceRule.Preserve, "", -1, -1, "", "", "", "", -1, -1, -1, null)]
public string AlbumName
{
get
{
return m_AlbumName;
}
set
{
value = LiquidTechnologies.Runtime.WhitespaceUtils.Preserve(value);
m_AlbumName = value;
}
}
protected string m_AlbumName;
#endregion
#region Attribute - ArtistName
[LiquidTechnologies.Runtime.ElementInfoSeqPrimMnd("ArtistName", "", null, LiquidTechnologies.Runtime.Conversions.ConversionType.type_string, null, LiquidTechnologies.Runtime.WhitespaceUtils.WhitespaceRule.Preserve, "", -1, -1, "", "", "", "", -1, -1, -1, null)]
public string ArtistName
{
get
{
return m_ArtistName;
}
set
{
value = LiquidTechnologies.Runtime.WhitespaceUtils.Preserve(value);
m_ArtistName = value;
}
}
protected string m_ArtistName;
#endregion
#region Attribute - Track
[LiquidTechnologies.Runtime.ElementInfoSeqClsCol("Track", "", LiquidTechnologies.Runtime.XmlObjectBase.XmlElementType.Element)]
public MusicStoreLib.XmlObjectCollection<MusicStoreLib.TrackType> Track
{
get { return m_Track; }
}
protected MusicStoreLib.XmlObjectCollection<MusicStoreLib.TrackType> m_Track;
#endregion
#region Attribute - Namespace
public override string Namespace
{
get { return ""; }
}
#endregion
#region Attribute - GetBase
public override LiquidTechnologies.Runtime.XmlObjectBase GetBase()
{
return this;
}
#endregion
#endregion
}
}