Example #1
0
 /**
  * This constructor initializes the class.
  *
  * @access public
  * @param Spring\XMLObjectFactory $context                  the XML resource to be parsed
  */
 public function __construct(Spring\XMLObjectFactory $context)
 {
     $this->context = $context;
     $this->idrefs = array();
     $this->registry = new Spring\Object\Registry();
     $this->registry->putEntry(array('array', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\ArrayElement());
     $this->registry->putEntry(array('dictionary', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\DictionaryElement());
     $this->registry->putEntry(array('entry', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\EntryElement());
     $this->registry->putEntry(array('expression', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\ExpressionElement());
     $this->registry->putEntry(array('function', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\FunctionElement());
     $this->registry->putEntry(array('idref', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\IdrefElement());
     $this->registry->putEntry(array('list', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\ListElement());
     $this->registry->putEntry(array('map', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\MapElement());
     $this->registry->putEntry(array('null', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\NullElement());
     $this->registry->putEntry(array('object', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\ObjectElement());
     $this->registry->putEntry(array('ref', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\RefElement());
     $this->registry->putEntry(array('set', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\SetElement());
     $this->registry->putEntry(array('undefined', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\UndefinedElement());
     $this->registry->putEntry(array('value', Spring\Data\XML::NAMESPACE_URI), new Spring\Object\Factory\ValueElement());
     $this->singletons = new Common\Mutable\HashMap();
 }