public class OwExprReflectiveProperty extends Object implements OwExprProperty
Reflective properties are properties that rely on POJOs getters to return values.
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 and Description |
|---|
OwExprReflectiveProperty(String name_p,
Object javaObject_p,
Method propertyMethod_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OwExprProperty |
at(int index_p)
Indexed scope access method
|
OwExprFunction |
function(String functionName_p,
OwExprExpressionType[] argunmentTypes_p)
Function access method.
|
boolean |
hasProperty(String propertyName_p)
Property access helper method.
|
Class<?> |
javaType() |
int |
length()
Indexed scope access helper method
|
OwExprProperty |
property(String propertyName_p)
Property access method.
|
OwExprScope |
solveScope(String name_p) |
OwExprType |
type()
Performs type conversion using
OwExprType.fromJavaType(Object) |
OwExprValue |
value() |
public OwExprType type() throws OwExprEvaluationException
OwExprType.fromJavaType(Object)type in interface OwExprPropertyOwExprEvaluationExceptionpublic final OwExprValue value() throws OwExprEvaluationException
value in interface OwExprPropertyOwExprEvaluationExceptionpublic final OwExprFunction function(String functionName_p, OwExprExpressionType[] argunmentTypes_p) throws OwExprEvaluationException
OwExprScopefunction in interface OwExprScopefunctionName_p - the name of the requested functionargunmentTypes_p - array of OwExprExpressionType that defines the argument signature
of the requested functionOwExprFunction with the requested name and argument signature residing in this scopeOwExprEvaluationException - if the requested function is not found in this scope or
the creation of the corresponding OwExprFunction has failedpublic OwExprProperty property(String propertyName_p) throws OwExprEvaluationException
OwExprScopeproperty in interface OwExprScopepropertyName_p - the name of the requested propertyOwExprProperty with the requested name residing in this scopeOwExprEvaluationException - if the requested property is not found in this scope or
the creation of the corresponding OwExprProperty has failedpublic OwExprScope solveScope(String name_p) throws OwExprEvaluationException
OwExprEvaluationExceptionpublic OwExprProperty at(int index_p) throws OwExprEvaluationException
OwExprScopeat in interface OwExprScopeindex_p - int index of the requested propertyOwExprProperty property found at the requested indexOwExprEvaluationException - if the requested indexed access has failed (index out of bounds,
the creation of OwExprProperty has failed)public int length()
throws OwExprEvaluationException
OwExprScopelength in interface OwExprScopeOwExprEvaluationExceptionpublic boolean hasProperty(String propertyName_p) throws OwExprEvaluationException
OwExprScopehasProperty in interface OwExprScopepropertyName_p - the name of the requested propertytrue 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 otherwiseOwExprEvaluationException - if the property validity check has failedpublic Class<?> javaType() throws OwExprEvaluationException
javaType in interface OwExprPropertyOwExprEvaluationExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.