com.caucho.quercus.lib.simplexml
Class SelectedXMLElement

java.lang.Object
  extended by com.caucho.quercus.lib.simplexml.SimpleXMLElement
      extended by com.caucho.quercus.lib.simplexml.SelectedXMLElement
All Implemented Interfaces:
java.util.Map.Entry<java.lang.String,java.lang.Object>

public class SelectedXMLElement
extends SimpleXMLElement

SimpleXMLElement object oriented API facade. Also acts as the DOM document.


Field Summary
 
Fields inherited from class com.caucho.quercus.lib.simplexml.SimpleXMLElement
_attributes, _children, _cls, _env, _name, _namespace, _namespaceMap, _parent, _prefix, _text
 
Constructor Summary
protected SelectedXMLElement(Env env, QuercusClass cls, SimpleXMLElement owner)
           
 
Method Summary
protected  SimpleXMLElement getOwner()
           
 java.util.Iterator iterator()
          Required for 'foreach'.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.lib.simplexml.SimpleXMLElement
__construct, __count, __get, __getField, __set, __setField, __toString, addAttribute, addAttribute, addChild, addNamespace, addNamespaceAttribute, addText, asXML, attributes, children, create, entrySet, getAttribute, getDocNamespaces, getKey, getName, getNamespace, getNamespace, getNamespaces, getQuercusClass, getValue, hasNamespace, isElement, isNamespaceAttribute, isSameNamespace, isSamePrefix, jsonEncode, jsonEncodeImpl, printDepth, setQuercusClass, setText, setValue, simplexml_getName, toXML, toXMLImpl, varDumpImpl, wrapJava, xpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

SelectedXMLElement

protected SelectedXMLElement(Env env,
                             QuercusClass cls,
                             SimpleXMLElement owner)
Method Detail

getOwner

protected SimpleXMLElement getOwner()
Overrides:
getOwner in class SimpleXMLElement

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

iterator

public java.util.Iterator iterator()
Required for 'foreach'. When only values are specified in the loop foreach($a as $b), this method should return an iterator that contains Java objects that will be wrapped in a Value. When a 'foreach' loop with name/value pairs i.e. foreach($a as $b=>$c) invokes this method, it expects an iterator that contains objects that implement Map.Entry.

Overrides:
iterator in class SimpleXMLElement