public class OwExprTimeValue extends OwExprValue
A date value built around the OwExprTime
implementation.
Time values represent time spans.
The following properties are supported by values of this type :
seconds |
minutes |
hours |
inDays |
inUTCDays |
days |
months |
years |
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 |
---|
OwExprTimeValue(OwExprTime time_p)
Constructor
|
OwExprTimeValue(OwExprTime time_p,
Class<?> javaType_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprDateValue v1_p)
Stage 2 binary operator visitor acceptance method
|
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprStringValue v1_p)
Stage 2 binary operator visitor acceptance method
|
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprTimeValue v1_p)
Stage 2 binary operator visitor acceptance method
|
OwExprValue |
accept(OwExprBinaryOperator binaryOperator_p,
OwExprValue v2_p)
Stage 1 binary operator visitor acceptance method
|
boolean |
equals(Object obj_p) |
OwExprTime |
getTime() |
protected Map |
getValuePropeties()
Overridable default value properties factory method
|
int |
hashCode() |
Object |
toJavaObject(Class javaSuperType_p)
Java class conversion method.
|
String |
toString() |
accept, accept, accept, accept, at, fromJavaValue, fromJavaValue, function, getJavaType, hasProperty, length, property
public OwExprTimeValue(OwExprTime time_p)
time_p
- the inner time valuepublic OwExprTimeValue(OwExprTime time_p, Class<?> javaType_p)
time_p
- the inner time valuejavaType_p
- original java typeprotected final Map getValuePropeties()
OwExprValue
getValuePropeties
in class OwExprValue
Map
of OwExprProperty
for this valuepublic final OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprValue v2_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv2_p
- right side operator valueOwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprDateValue v1_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv1_p
- lef side operator valueOwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprTimeValue v1_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv1_p
- lef side operator valueOwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprStringValue v1_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv1_p
- lef side operator valueOwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public Object toJavaObject(Class javaSuperType_p) throws OwExprEvaluationException
OwExprValue
toJavaObject
in class OwExprValue
javaSuperType_p
- OwExprTime
OwExprEvaluationException
public final OwExprTime getTime()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.