com.wewebu.expression.language
Interface OwExprScope

All Known Subinterfaces:
OwExprProperty
All Known Implementing Classes:
OwExprBooleanValue, OwExprDateValue, OwExprExternalScope, OwExprNullValue, OwExprNumericValue, OwExprObjectProperty, OwExprReflectiveProperty, OwExprReflectiveScope, OwExprScopedProperty, OwExprScopeValue, OwExprStaticArray, OwExprStringValue, OwExprSystem, OwExprTimeValue, OwExprValue

public interface OwExprScope

Scope defining interface. Scopes are indexed property and function domains. Scope implementations provide function and property interrogating methods as well as well as indexed access helper methods.

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


Method Summary
 OwExprProperty at(int index_p)
          Indexed scope access method
 OwExprFunction function(String functionName_p, OwExprExpressionType[] argunmentTyes_p)
          Function access method.
 boolean hasProperty(String propertyName_p)
          Property access helper method.
 int length()
          Indexed scope access helper method
 OwExprProperty property(String propertyName_p)
          Property access method.
 

Method Detail

function

OwExprFunction function(String functionName_p,
                        OwExprExpressionType[] argunmentTyes_p)
                        throws OwExprEvaluationException
Function access method.

Parameters:
functionName_p - the name of the requested function
argunmentTyes_p - array of OwExprExpressionType that defines the argument signature of the requested function
Returns:
an OwExprFunction with the requested name and argument signature residing in this scope
Throws:
OwExprEvaluationException - if the requested function is not found in this scope or the creation of the corresponding OwExprFunction has failed

property

OwExprProperty property(String propertyName_p)
                        throws OwExprEvaluationException
Property access method.

Parameters:
propertyName_p - the name of the requested property
Returns:
an OwExprProperty with the requested name residing in this scope
Throws:
OwExprEvaluationException - if the requested property is not found in this scope or the creation of the corresponding OwExprProperty has failed

at

OwExprProperty at(int index_p)
                  throws OwExprEvaluationException
Indexed scope access method

Parameters:
index_p - int index of the requested property
Returns:
the OwExprProperty property found at the requested index
Throws:
OwExprEvaluationException - if the requested indexed access has failed (index out of bounds, the creation of OwExprProperty has failed)

length

int length()
           throws OwExprEvaluationException
Indexed scope access helper method

Returns:
the maximum index range for which indexed access is possible in this scope
Throws:
OwExprEvaluationException

hasProperty

boolean hasProperty(String propertyName_p)
                    throws OwExprEvaluationException
Property access helper method. Checks if a property is valid in this scope.

Parameters:
propertyName_p - the name of the requested property
Returns:
true if this scope can perform property access for the requested property - an access via property(String) will NOT fail on missing property grounds, false otherwise
Throws:
OwExprEvaluationException - if the property validity check has failed


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.