public class DocumentView extends SimpleView
Constructor and Description |
---|
DocumentView(org.w3c.dom.Document doc) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Env env,
java.lang.String name,
java.lang.String value,
java.lang.String namespace) |
SimpleView |
addChild(Env env,
java.lang.String name,
java.lang.String value,
java.lang.String namespace) |
AttributeListView |
getAttributes(java.lang.String namespace) |
ChildrenView |
getChildren(java.lang.String namespace,
java.lang.String prefix) |
int |
getCount() |
java.util.Set<java.util.Map.Entry<Value,Value>> |
getEntrySet(Env env,
QuercusClass cls) |
SimpleView |
getField(Env env,
Value indexV) |
SimpleView |
getIndex(Env env,
Value indexV) |
java.util.Iterator<java.util.Map.Entry<IteratorIndex,SimpleView>> |
getIterator() |
java.util.HashMap<java.lang.String,java.lang.String> |
getNamespaces(boolean isRecursive,
boolean isFromRoot,
boolean isCheckUsage) |
java.lang.String |
getNodeName() |
boolean |
issetField(Env env,
java.lang.String name) |
SimpleView |
setField(Env env,
Value indexV,
Value value) |
SimpleView |
setIndex(Env env,
Value indexV,
Value value) |
Value |
toDumpValue(Env env,
QuercusClass cls,
boolean isChildren) |
java.lang.String |
toString() |
java.lang.String |
toString(Env env) |
boolean |
toXml(Env env,
java.lang.StringBuilder sb) |
java.util.List<SimpleView> |
xpath(Env env,
SimpleNamespaceContext context,
java.lang.String expression) |
create, getEncoding, getNode, getNodeValue, getOwnerDocument, jsonEncode, printR, varDump, xpath
public java.lang.String getNodeName()
getNodeName
in class SimpleView
public ChildrenView getChildren(java.lang.String namespace, java.lang.String prefix)
getChildren
in class SimpleView
public AttributeListView getAttributes(java.lang.String namespace)
getAttributes
in class SimpleView
public SimpleView addChild(Env env, java.lang.String name, java.lang.String value, java.lang.String namespace)
addChild
in class SimpleView
public void addAttribute(Env env, java.lang.String name, java.lang.String value, java.lang.String namespace)
addAttribute
in class SimpleView
public SimpleView getIndex(Env env, Value indexV)
getIndex
in class SimpleView
public SimpleView setIndex(Env env, Value indexV, Value value)
setIndex
in class SimpleView
public SimpleView getField(Env env, Value indexV)
getField
in class SimpleView
public SimpleView setField(Env env, Value indexV, Value value)
setField
in class SimpleView
public java.util.List<SimpleView> xpath(Env env, SimpleNamespaceContext context, java.lang.String expression)
xpath
in class SimpleView
public int getCount()
getCount
in class SimpleView
public boolean issetField(Env env, java.lang.String name)
issetField
in class SimpleView
public java.util.HashMap<java.lang.String,java.lang.String> getNamespaces(boolean isRecursive, boolean isFromRoot, boolean isCheckUsage)
getNamespaces
in class SimpleView
public java.lang.String toString(Env env)
toString
in class SimpleView
public java.util.Iterator<java.util.Map.Entry<IteratorIndex,SimpleView>> getIterator()
getIterator
in class SimpleView
public java.util.Set<java.util.Map.Entry<Value,Value>> getEntrySet(Env env, QuercusClass cls)
getEntrySet
in class SimpleView
public boolean toXml(Env env, java.lang.StringBuilder sb)
toXml
in class SimpleView
public Value toDumpValue(Env env, QuercusClass cls, boolean isChildren)
toDumpValue
in class SimpleView
public java.lang.String toString()
toString
in class java.lang.Object