ice.pilots.html4
Class DXmlElement
java.lang.Object
ice.storm.DynamicObject
ice.pilots.html4.DNode
ice.pilots.html4.DElement
ice.pilots.html4.DXmlElement
- All Implemented Interfaces:
- Cloneable, Element, ElementCSSInlineStyle, EventTarget, HTMLElement, Node
- public class DXmlElement
- extends DElement
Class for representing XML Data islands. This MSIE-specific feature
make it possible to import XML documents into HTML documents,
and let the XML document be accesible from scripters, so they can
be used for XSL transformations or otherwise. The tag is used the
following way:
or:
...XML document text....
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Method Summary |
protected Object |
execDynamicMethod(int key_id,
Object[] args,
DynEnv env)
|
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
protected Object |
getDynamicValue(int key_id,
DynEnv env)
|
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
Document |
getGeneratedDocument()
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
protected String |
transformNode(Document stylesheet)
Does a XSL transformation on this document, and returns a
string containing the transformed document. |
protected void |
transformNodeToObject(Document stylesheet,
Document result)
|
| Methods inherited from class ice.pilots.html4.DElement |
afterClone, attrNameToId, getAttribute, getAttribute, getAttributeAsInt, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBgColor, getChildViewport, getClassName, getClientLeft, getClientTop, getClientWidth, getColor, getDir, getElementsByTagName, getElementsByTagNameNS, getEmbeddedDocument, getEmbeddedViewHolder, getId, getInnerHTML, getLang, getLocalName, getName, getNamespaceURI, getNodeName, getNodeType, getOuterHTML, getPrefix, getStyle, getSynthetic, getTagName, getTitle, hasAttribute, hasAttributeNS, insertAdjacentHTML, onDAttrValueChange, removeAttribute, removeAttributeNode, removeAttributeNS, removeNode, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setBgColor, setClassName, setColor, setCols, setDir, setId, setInnerHTML, setLang, setName, setOuterHTML, setRows, setTitle, swapDNode, swapNode, toString |
| Methods inherited from class ice.pilots.html4.DNode |
addEventListener, appendChild, appendDChild, clone, clone, cloneNode, contains, deleteSlot, dispatchEvent, getAll, getChildNodes, getDAttr, getDAttrCount, getDAttrFromIndex, getDAttrListHead, getDAttrValueOrNull, getDParent, getDynamicScopeParent, getFirstChild, getFirstDChild, getInnerText, getLastChild, getLastDChild, getNameId, getNextDSibling, getNextSibling, getNodeValue, getOuterText, getOwnerDDocument, getOwnerDocument, getParentDNode, getParentNode, getPilot, getPreviousDSibling, getPreviousSibling, getRootDNode, getRootNode, getSlot, hasAttributes, hasChildNodes, hasSlot, insertBefore, insertDChildBefore, isSupported, normalize, removeAllDAttrs, removeChild, removeDAttr, removeDAttr, removeDChild, removeEventListener, replaceChild, replaceDChild, setDAttr, setDAttr, setInnerText, setNodeValue, setOuterText, setParent, setPrefix, setSlot, unlinkAllSlots |
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
DXmlElement
protected DXmlElement(DDocument doc,
int id)
getGeneratedDocument
public Document getGeneratedDocument()
transformNode
protected String transformNode(Document stylesheet)
throws IOException
- Does a XSL transformation on this document, and returns a
string containing the transformed document.
- Throws:
IOException
transformNodeToObject
protected void transformNodeToObject(Document stylesheet,
Document result)
throws IOException
- Throws:
IOException
getDynamicValue
public Object getDynamicValue(String name,
DynEnv env)
- Description copied from class:
DynamicObject
- Returns the `key' field or Defs.NOT_FOUND if `name' does not exist.
Returns `FUNCTION_MARK' if `name' represent a function that can be invoke
via execDynamicMethod.
Note that returned `null' indicates that value is present but set to null.
- Overrides:
getDynamicValue in class DElement
setDynamicValue
public int setDynamicValue(String name,
Object value,
DynEnv env)
- Description copied from class:
DynamicObject
- Set field `name' to `value'.
Use `env' to unwrap `value' to a particular type or store it as is
- Overrides:
setDynamicValue in class DElement
execDynamicMethod
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
- Description copied from class:
DynamicObject
- Perform function-like actions for `name' with the given args.
Returns the result or Defs.NOT_FOUND if name is not associated with function action. Should return result of env.wrapVoid() to indicate method without return value. Use `env' to unwrap `args' elements to a particular type.
- Overrides:
execDynamicMethod in class DElement
getDynamicValue
protected Object getDynamicValue(int key_id,
DynEnv env)
execDynamicMethod
protected Object execDynamicMethod(int key_id,
Object[] args,
DynEnv env)
throws IOException
- Throws:
IOException