// Copyright 2004, Microsoft Corporation
// Sample Code - Use restricted to terms of use defined in the accompanying license agreement (EULA.doc)

//--------------------------------------------------------------
// Autogenerated by XSDObjectGen version 1.3.6.0
// Schema file: EPCtagInfo.xsd
// Creation Date: 2/22/2005 3:22:54 PM
//--------------------------------------------------------------

using System;
using System.Xml.Serialization;
using System.Collections;
using System.Xml.Schema;
using System.ComponentModel;

namespace Microsoft.RFIDLab.EPCISDemo.Common
{

	public struct Declarations
	{
		public const string SchemaVersion = "";
	}


	[Serializable]
	[EditorBrowsable(EditorBrowsableState.Advanced)]
	public class PalletItemCollection : ArrayList
	{
		public PalletItem Add(PalletItem obj)
		{
			base.Add(obj);
			return obj;
		}

		public PalletItem Add()
		{
			return Add(new PalletItem());
		}

		public void Insert(int index, PalletItem obj)
		{
			base.Insert(index, obj);
		}

		public void Remove(PalletItem obj)
		{
			base.Remove(obj);
		}

		new public PalletItem this[int index]
		{
			get { return (PalletItem) base[index]; }
			set { base[index] = value; }
		}
	}

	[Serializable]
	[EditorBrowsable(EditorBrowsableState.Advanced)]
	public class CaseItemCollection : ArrayList
	{
		public CaseItem Add(CaseItem obj)
		{
			base.Add(obj);
			return obj;
		}

		public CaseItem Add()
		{
			return Add(new CaseItem());
		}

		public void Insert(int index, CaseItem obj)
		{
			base.Insert(index, obj);
		}

		public void Remove(CaseItem obj)
		{
			base.Remove(obj);
		}

		new public CaseItem this[int index]
		{
			get { return (CaseItem) base[index]; }
			set { base[index] = value; }
		}
	}



	[XmlRoot(ElementName="OrderInformation",IsNullable=false),Serializable]
	public class OrderInformation
	{

		[XmlElement(ElementName="OrderNumber",IsNullable=false,Form=XmlSchemaForm.Qualified,DataType="string")]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public string __OrderNumber;
		
		[XmlIgnore]
		public string OrderNumber
		{ 
			get { return __OrderNumber; }
			set { __OrderNumber = value; }
		}

		[XmlElement(Type=typeof(PalletItem),ElementName="PalletItem",IsNullable=false,Form=XmlSchemaForm.Qualified)]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public PalletItemCollection __PalletItemCollection;
		
		[XmlIgnore]
		public PalletItemCollection PalletItemCollection
		{
			get
			{
				if (__PalletItemCollection == null) __PalletItemCollection = new PalletItemCollection();
				return __PalletItemCollection;
			}
			set {__PalletItemCollection = value;}
		}

		public OrderInformation()
		{
		}
	}


	[XmlRoot(ElementName="PalletItem",IsNullable=false),Serializable]
	public class PalletItem
	{

		[XmlElement(Type=typeof(EpcTagId),ElementName="EpcTagId",IsNullable=false,Form=XmlSchemaForm.Qualified)]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public EpcTagId __EpcTagId;
		
		[XmlIgnore]
		public EpcTagId EpcTagId
		{
			get
			{
				if (__EpcTagId == null) __EpcTagId = new EpcTagId();		
				return __EpcTagId;
			}
			set {__EpcTagId = value;}
		}

		[XmlElement(Type=typeof(CaseItem),ElementName="CaseItem",IsNullable=false,Form=XmlSchemaForm.Qualified)]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public CaseItemCollection __CaseItemCollection;
		
		[XmlIgnore]
		public CaseItemCollection CaseItemCollection
		{
			get
			{
				if (__CaseItemCollection == null) __CaseItemCollection = new CaseItemCollection();
				return __CaseItemCollection;
			}
			set {__CaseItemCollection = value;}
		}

		public PalletItem()
		{
		}
	}


	[XmlRoot(ElementName="CaseItem",IsNullable=false),Serializable]
	public class CaseItem
	{

		[XmlElement(Type=typeof(EpcTagId),ElementName="EpcTagId",IsNullable=false,Form=XmlSchemaForm.Qualified)]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public EpcTagId __EpcTagId;
		
		[XmlIgnore]
		public EpcTagId EpcTagId
		{
			get
			{
				if (__EpcTagId == null) __EpcTagId = new EpcTagId();		
				return __EpcTagId;
			}
			set {__EpcTagId = value;}
		}

		public CaseItem()
		{
		}
	}


	[XmlRoot(ElementName="EpcTagId",IsNullable=false),Serializable]
	public class EpcTagId
	{

		[XmlElement(Type=typeof(FreeFormText),ElementName="FreeFormText",IsNullable=false,Form=XmlSchemaForm.Qualified)]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public FreeFormText __FreeFormText;
		
		[XmlIgnore]
		public FreeFormText FreeFormText
		{
			get
			{
				if (__FreeFormText == null) __FreeFormText = new FreeFormText();		
				return __FreeFormText;
			}
			set {__FreeFormText = value;}
		}

		public EpcTagId()
		{
		}
	}


	[XmlRoot(ElementName="FreeFormText",IsNullable=false),Serializable]
	public class FreeFormText
	{

		[XmlAttribute(AttributeName="lang",DataType="language")]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public string __lang;
		
		[XmlIgnore]
		public string lang
		{ 
			get { return __lang; }
			set { __lang = value; }
		}

		[XmlText(DataType="string")]
		[EditorBrowsable(EditorBrowsableState.Advanced)]
		public string __Value;
		
		[XmlIgnore]
		public string Value
		{ 
			get { return __Value; }
			set { __Value = value; }
		}

		public FreeFormText()
		{
		}
	}
}
