fi.hut.tml.xsmiles.mlfc.xforms.dom
Interface ElementWithContext

All Superinterfaces:
org.w3c.dom.Element, org.w3c.dom.Node
All Known Subinterfaces:
MessageElement
All Known Implementing Classes:
DynBoundElementImpl, MessageElementImpl, ModelBoundElementImpl

public interface ElementWithContext
extends org.w3c.dom.Element

An element, which allows context node changes to propagate in the DOM tree.

Author:
Mikko Honkala

Field Summary
 
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
 void checkBinding()
          check if my binding has changed
 short getBindingState()
           
 InstanceNode getContextForDescendant()
          an descendant asks for its context
 ModelElementImpl getModel()
          get this elements model (look for parents if model attribute not found)
 InstanceNode getRefNode()
           
 java.lang.String getTextWithPrecedence()
           
 boolean hasBindingAttributes()
          is this element bound.
 void notifyParentBindingChanged(DynBoundElementImpl ancestor)
          notify that I should re-initialize my context node
 void renewBinding()
          renew my bindings
 void resetContextNode()
          reset my context node
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Method Detail

getContextForDescendant

public InstanceNode getContextForDescendant()
an descendant asks for its context


notifyParentBindingChanged

public void notifyParentBindingChanged(DynBoundElementImpl ancestor)
notify that I should re-initialize my context node


getModel

public ModelElementImpl getModel()
get this elements model (look for parents if model attribute not found)


getBindingState

public short getBindingState()

renewBinding

public void renewBinding()
renew my bindings


resetContextNode

public void resetContextNode()
reset my context node


checkBinding

public void checkBinding()
check if my binding has changed


hasBindingAttributes

public boolean hasBindingAttributes()
is this element bound. Not all elements are always bound, such as group without ref


getRefNode

public InstanceNode getRefNode()

getTextWithPrecedence

public java.lang.String getTextWithPrecedence()
                                       throws XFormsLinkException
Throws:
XFormsLinkException


X-Smiles 1.2