<?php
// autogenerated file 05.05.2008 16:30
// $Id: $
// $Log: $
//
//
require_once 'EbatNs_ComplexType.php';

/**
 *  
 *
 *
 */
class EbatNsCsSetExt_RuleType extends EbatNs_ComplexType
{
	/**
	 * @var string
	 */
	protected $Name;
	/**
	 * @var string
	 */
	protected $Length;
	/**
	 * @var string
	 */
	protected $Required;

	/**
	 * @return string
	 * @param integer $index 
	 */
	function getName($index = null)
	{
		if ($index !== null) {
			return $this->Name[$index];
		} else {
			return $this->Name;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 * @param  $index 
	 */
	function setName($value, $index = null)
	{
		if ($index !== null) {
			$this->Name[$index] = $value;
		} else {
			$this->Name = $value;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 */
	function addName($value)
	{
		$this->Name[] = $value;
	}
	/**
	 * @return string
	 * @param integer $index 
	 */
	function getLength($index = null)
	{
		if ($index !== null) {
			return $this->Length[$index];
		} else {
			return $this->Length;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 * @param  $index 
	 */
	function setLength($value, $index = null)
	{
		if ($index !== null) {
			$this->Length[$index] = $value;
		} else {
			$this->Length = $value;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 */
	function addLength($value)
	{
		$this->Length[] = $value;
	}
	/**
	 * @return string
	 * @param integer $index 
	 */
	function getRequired($index = null)
	{
		if ($index !== null) {
			return $this->Required[$index];
		} else {
			return $this->Required;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 * @param  $index 
	 */
	function setRequired($value, $index = null)
	{
		if ($index !== null) {
			$this->Required[$index] = $value;
		} else {
			$this->Required = $value;
		}
	}
	/**
	 * @return void
	 * @param string $value 
	 */
	function addRequired($value)
	{
		$this->Required[] = $value;
	}
	/**
	 * @return 
	 */
	function __construct()
	{
		parent::__construct('EbatNsCsSetExt_RuleType', 'http://www.intradesys.com/Schemas/ebay/AttributeData_Extension.xsd');
		$this->_elements = array_merge($this->_elements,
			array(
				'Name' =>
				array(
					'required' => true,
					'type' => 'string',
					'nsURI' => 'http://www.w3.org/2001/XMLSchema',
					'array' => true,
					'cardinality' => '1..*'
				),
				'Length' =>
				array(
					'required' => true,
					'type' => 'string',
					'nsURI' => 'http://www.w3.org/2001/XMLSchema',
					'array' => true,
					'cardinality' => '1..*'
				),
				'Required' =>
				array(
					'required' => true,
					'type' => 'string',
					'nsURI' => 'http://www.w3.org/2001/XMLSchema',
					'array' => true,
					'cardinality' => '1..*'
				)
			));

	}
}
?>
