|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.lib.simplexml.SimpleXMLElement
com.caucho.quercus.lib.simplexml.SimpleXMLAttributeList
public class SimpleXMLAttributeList
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 |
SimpleXMLAttributeList(Env env,
QuercusClass cls,
SimpleXMLElement parent,
java.lang.String name)
|
protected |
SimpleXMLAttributeList(Env env,
QuercusClass cls,
SimpleXMLElement parent,
java.lang.String name,
java.lang.String namespace,
StringValue text)
|
Method Summary | |
---|---|
Value |
__get(Env env,
Value indexV)
Implementation for getting the indices of this class. |
protected void |
addNamespace(java.lang.String prefix,
java.lang.String namespace)
|
protected void |
addNamespaceAttribute(Env env,
java.lang.String name,
java.lang.String namespace)
Adds a namespace attribute to this node. |
java.util.Iterator |
iterator()
Required for 'foreach'. |
java.lang.String |
simplexml_getName()
Returns the name of the node. |
protected Value |
toXML(Env env)
Converts node tree to a valid xml string. |
protected void |
toXMLImpl(StringValue sb)
|
Methods inherited from class com.caucho.quercus.lib.simplexml.SimpleXMLElement |
---|
__construct, __count, __getField, __set, __setField, __toString, addAttribute, addAttribute, addChild, addText, asXML, attributes, children, create, entrySet, getAttribute, getDocNamespaces, getKey, getName, getNamespace, getNamespace, getNamespaces, getOwner, getQuercusClass, getValue, hasNamespace, isElement, isNamespaceAttribute, isSameNamespace, isSamePrefix, jsonEncode, jsonEncodeImpl, printDepth, setQuercusClass, setText, setValue, varDumpImpl, wrapJava, xpath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Constructor Detail |
---|
protected SimpleXMLAttributeList(Env env, QuercusClass cls, SimpleXMLElement parent, java.lang.String name)
protected SimpleXMLAttributeList(Env env, QuercusClass cls, SimpleXMLElement parent, java.lang.String name, java.lang.String namespace, StringValue text)
Method Detail |
---|
public java.lang.String simplexml_getName()
simplexml_getName
in class SimpleXMLElement
protected void addNamespace(java.lang.String prefix, java.lang.String namespace)
addNamespace
in class SimpleXMLElement
protected void addNamespaceAttribute(Env env, java.lang.String name, java.lang.String namespace)
addNamespaceAttribute
in class SimpleXMLElement
public java.util.Iterator iterator()
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.
iterator
in class SimpleXMLElement
protected Value toXML(Env env)
toXML
in class SimpleXMLElement
protected void toXMLImpl(StringValue sb)
toXMLImpl
in class SimpleXMLElement
public Value __get(Env env, Value indexV)
$a->foo[0]
__get
in class SimpleXMLElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |