fi.hut.tml.xsmiles.mlfc.xforms
Class XFormsUtil

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.XFormsUtil

public class XFormsUtil
extends java.lang.Object

XForms releated utility functions


Constructor Summary
XFormsUtil()
           
 
Method Summary
static void dumpDOM(boolean views, org.w3c.dom.Element e)
           
static void dumpDOM(boolean views, org.w3c.dom.Element e, int level)
           
static java.lang.String getNamespaceURI(java.lang.String prefix, org.w3c.dom.Element elem)
          this method goes thru the tree from the provided element to the root and tries to find a namespace prefix mapping and returns the mapped URI or null if not found
static QName getQName(java.lang.String rawName, org.w3c.dom.Element nsContext)
           
static java.lang.String getText(org.w3c.dom.Node elem)
          get the text value of this node
static boolean isXFormsValid(InstanceNode n)
          goes thru all children and checks whether they are xforms valid will notify registered controls to make sure that invalidity is reflected in the UI
static void setText(org.w3c.dom.Node n, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFormsUtil

public XFormsUtil()
Method Detail

setText

public static void setText(org.w3c.dom.Node n,
                           java.lang.String text)

getText

public static java.lang.String getText(org.w3c.dom.Node elem)
get the text value of this node


isXFormsValid

public static boolean isXFormsValid(InstanceNode n)
goes thru all children and checks whether they are xforms valid will notify registered controls to make sure that invalidity is reflected in the UI


getQName

public static QName getQName(java.lang.String rawName,
                             org.w3c.dom.Element nsContext)

getNamespaceURI

public static java.lang.String getNamespaceURI(java.lang.String prefix,
                                               org.w3c.dom.Element elem)
this method goes thru the tree from the provided element to the root and tries to find a namespace prefix mapping and returns the mapped URI or null if not found


dumpDOM

public static void dumpDOM(boolean views,
                           org.w3c.dom.Element e)

dumpDOM

public static void dumpDOM(boolean views,
                           org.w3c.dom.Element e,
                           int level)


X-Smiles 1.2