fi.hut.tml.xsmiles.mlfc.xforms.xpath
Class XFormsFunctions

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.xpath.XFormsFunctions

public class XFormsFunctions
extends java.lang.Object

Author:
honkkis To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
XFormsFunctions()
           
 
Method Summary
static java.lang.Object avg(java.util.Enumeration stringValues)
          xforms:avg function
static java.lang.Boolean boolean_from_string(java.lang.String param)
          xforms:boolean-from-string
static java.lang.Object count_non_empty(java.util.Enumeration nodes)
          xforms:count-non-empty
static java.lang.Object cursor(java.lang.String param, XFormsContext handler)
          xforms:cursor()
static java.lang.Number daysFromDate(java.lang.String durationStr)
          xforms:days-from-date()
static org.w3c.dom.Node instance(java.lang.String param, ModelContext modelContext)
          xforms:instance()
static java.lang.Object max(java.util.Enumeration stringValues)
          xforms:max
static java.lang.Object min(java.util.Enumeration stringValues)
          xforms:min
static java.lang.Number months(java.lang.String durationStr)
          xforms:seconds
static java.lang.String now()
          xforms:now
static java.lang.String property(java.lang.String param)
          xforms:property
static java.lang.Number seconds(java.lang.String durationStr)
          xforms:seconds
static java.lang.Number secondsFromDateTime(java.lang.String durationStr)
          xforms:days-from-date()
static java.lang.Object xif(java.lang.Boolean question, java.lang.Object ret_true, java.lang.Object ret_false)
          xforms:avg function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFormsFunctions

public XFormsFunctions()
Method Detail

instance

public static org.w3c.dom.Node instance(java.lang.String param,
                                        ModelContext modelContext)
xforms:instance()


cursor

public static java.lang.Object cursor(java.lang.String param,
                                      XFormsContext handler)
xforms:cursor()


boolean_from_string

public static java.lang.Boolean boolean_from_string(java.lang.String param)
xforms:boolean-from-string


property

public static java.lang.String property(java.lang.String param)
xforms:property


now

public static java.lang.String now()
xforms:now


daysFromDate

public static java.lang.Number daysFromDate(java.lang.String durationStr)
xforms:days-from-date()


secondsFromDateTime

public static java.lang.Number secondsFromDateTime(java.lang.String durationStr)
xforms:days-from-date()


seconds

public static java.lang.Number seconds(java.lang.String durationStr)
                                throws java.lang.Exception
xforms:seconds

Throws:
java.lang.Exception

months

public static java.lang.Number months(java.lang.String durationStr)
                               throws java.lang.Exception
xforms:seconds

Throws:
java.lang.Exception

min

public static java.lang.Object min(java.util.Enumeration stringValues)
xforms:min


max

public static java.lang.Object max(java.util.Enumeration stringValues)
xforms:max


count_non_empty

public static java.lang.Object count_non_empty(java.util.Enumeration nodes)
xforms:count-non-empty


avg

public static java.lang.Object avg(java.util.Enumeration stringValues)
xforms:avg function


xif

public static java.lang.Object xif(java.lang.Boolean question,
                                   java.lang.Object ret_true,
                                   java.lang.Object ret_false)
xforms:avg function



X-Smiles 1.2