|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.expression.language.OwExprExternalScope
public class OwExprExternalScope
External scopes are property and function domains Java API interfaces.
External scopes can be used on their own as collections of properties and functions.
This version only supports adding properties!
By extending this class custom scopes can be made available during expressions evaluation.
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
Constructor Summary | |
---|---|
OwExprExternalScope(String name_p)
Constructor |
Method Summary | |
---|---|
void |
addScope(OwExprExternalScope externalScope_p)
Adds a sub scope to this scope. Scopes are stored as properties of this scope. |
OwExprProperty |
at(int index_p)
Indexed scope access method |
OwExprFunction |
function(String functionName_p,
OwExprExpressionType[] argunmentTypes_p)
Function access method. |
String |
getName()
|
boolean |
hasProperty(String propertyName_p)
Property access helper method. |
int |
length()
Indexed scope access helper method |
protected OwExprFunction |
prelevateFunction(String functionName_p,
OwExprExpressionType[] argumentTypes_p)
Function search hook for function(String, OwExprExpressionType[]) .Children of this class should override this method to perform custom |
protected OwExprProperty |
prelevateProperty(String propertyName_p)
Property search hook for property(String) . |
OwExprProperty |
property(String propertyName_p)
Property access method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OwExprExternalScope(String name_p)
name_p
- the name of this scope. The scope will be referenced by this name in the evaluated expressions.Method Detail |
---|
public final void addScope(OwExprExternalScope externalScope_p)
externalScope_p
- the sub scope to addpublic final OwExprFunction function(String functionName_p, OwExprExpressionType[] argunmentTypes_p) throws OwExprEvaluationException
OwExprScope
function
in interface OwExprScope
functionName_p
- the name of the requested functionargunmentTypes_p
- the argument types of the requested function
OwExprEvaluationException
public final OwExprProperty property(String propertyName_p) throws OwExprEvaluationException
OwExprScope
property
in interface OwExprScope
propertyName_p
-
OwExprEvaluationException
protected OwExprFunction prelevateFunction(String functionName_p, OwExprExpressionType[] argumentTypes_p) throws OwExprEvaluationException
function(String, OwExprExpressionType[])
.
functionName_p
- argumentTypes_p
-
null
OwExprEvaluationException
protected OwExprProperty prelevateProperty(String propertyName_p) throws OwExprEvaluationException
property(String)
.
propertyName_p
-
addScope(OwExprExternalScope)
or null
if no such property was added
OwExprEvaluationException
public final String getName()
public String toString()
toString
in class Object
public OwExprProperty at(int index_p) throws OwExprEvaluationException
OwExprScope
at
in interface OwExprScope
index_p
- int
index of the requested property
OwExprProperty
property found at the requested index
OwExprEvaluationException
- if the requested indexed access has failed (index out of bounds,
the creation of OwExprProperty
has failed)public int length() throws OwExprEvaluationException
OwExprScope
length
in interface OwExprScope
OwExprEvaluationException
public boolean hasProperty(String propertyName_p) throws OwExprEvaluationException
OwExprScope
hasProperty
in interface OwExprScope
propertyName_p
- the name of the requested property
true
if this scope can perform property access for the requested property
- an access via OwExprScope.property(String)
will NOT fail on missing property grounds,
false
otherwise
OwExprEvaluationException
- if the property validity check has failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |