|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.expression.language.OwExprExternalScope
com.wewebu.expression.language.OwExprReflectiveScope
com.wewebu.expression.language.OwExprSystem
public class OwExprSystem
The system scope is the default top level scope.
No named reference can be made to it.
This makes so called domain-less or scope-less function calls and property references legal.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary | |
|---|---|
static String |
DATE_FORMAT_STRING
|
static int |
VERSION_MAJOR
Expression language major version |
static int |
VERSION_MINOR
Expression language minor version |
static String |
VERSION_STRING
Expression language version string |
static int |
VERSION_UPDATE
Expression language update version |
| Constructor Summary | |
|---|---|
OwExprSystem()
|
|
| Method Summary | |
|---|---|
static boolean |
arrayItemEquals(Object item_p,
Object object_p)
Array based item equality operator. Array objects are considered and compared accordingly. Example:
arrayItemEquals(new Object[]{new Object[]{'a','b'}},new Object[]{new Object[]{'a','b'}})
will return true |
boolean |
contains(Object[] array_p,
Object object_p)
Array item containment check method. |
Calendar |
date(int year_p,
int month_p,
int day_p)
The expression language date(NUMERIC:year,NUMERIC:month,NUMERIC:day):DATE function implementation. |
Calendar |
date(int year_p,
int month_p,
int day_p,
int hour_p,
int minute_p,
int second_p)
|
Calendar |
date(int year_p,
int month_p,
int day_p,
int hour_p,
int minute_p,
int second_p,
String timeZoneID_p)
|
Calendar |
date(int year_p,
int month_p,
int day_p,
String timeZoneID_p)
|
Calendar |
date(String date_p)
The expression language date(STRING:date):DATE function implementation. |
OwExprTime |
days(double days_p)
The expression language days(NUMERIC:timeInDays):TIME function implementation. |
String |
getVersionString()
The expression language versionString property implementation. |
OwExprTime |
hours(int hours_p)
|
OwExprTime |
minutes(int minutes_p)
|
OwExprTime |
seconds(int seconds_p)
|
OwExprTime |
time(int hours_p,
int minutes_p,
int seconds_p)
|
Calendar |
today()
The expression language today() function implementation. |
int[] |
version()
The expression language version():NUMERIC[3] function implementation. |
| Methods inherited from class com.wewebu.expression.language.OwExprReflectiveScope |
|---|
at, hasProperty, length, prelevateFunction, prelevateProperty, toString |
| Methods inherited from class com.wewebu.expression.language.OwExprExternalScope |
|---|
addScope, function, getName, property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION_MAJOR
public static final int VERSION_MINOR
public static final int VERSION_UPDATE
public static final String VERSION_STRING
public static final String DATE_FORMAT_STRING
| Constructor Detail |
|---|
public OwExprSystem()
| Method Detail |
|---|
public final int[] version()
version():NUMERIC[3] function implementation.
int array containing the version numbers in the major,minor, update orderpublic final String getVersionString()
versionString property implementation.
public static boolean arrayItemEquals(Object item_p,
Object object_p)
arrayItemEquals(new Object[]{new Object[]{'a','b'}},new Object[]{new Object[]{'a','b'}})
will return true
item_p - object_p -
public final boolean contains(Object[] array_p,
Object object_p)
code(SCOPE,SCOPE) function implementation.
array_p - object_p -
true if and only if object_p is contained by the given objects arraypublic final Calendar today()
today() function implementation.
public Calendar date(int year_p,
int month_p,
int day_p)
date(NUMERIC:year,NUMERIC:month,NUMERIC:day):DATE function implementation.
year_p - month_p - day_p -
public Calendar date(int year_p,
int month_p,
int day_p,
String timeZoneID_p)
public Calendar date(int year_p,
int month_p,
int day_p,
int hour_p,
int minute_p,
int second_p)
public Calendar date(int year_p,
int month_p,
int day_p,
int hour_p,
int minute_p,
int second_p,
String timeZoneID_p)
public Calendar date(String date_p)
throws ParseException
date(STRING:date):DATE function implementation.
date_p - String date formated as yyyy-MM-dd'T'HH:mm:ssZ
ParseExceptionpublic final OwExprTime days(double days_p)
days(NUMERIC:timeInDays):TIME function implementation.
days_p -
OwExprTime object for the given number of dayspublic final OwExprTime seconds(int seconds_p)
public final OwExprTime minutes(int minutes_p)
public final OwExprTime hours(int hours_p)
public final OwExprTime time(int hours_p,
int minutes_p,
int seconds_p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||