com.wewebu.expression.language
Class OwExprType

java.lang.Object
  extended by com.wewebu.expression.language.OwExprType

public class OwExprType
extends Object

Atomic value-types enumeration. Defines evaluated values possible types and indexes them for faster type conversion table usage (see OwExprBinaryConversionTable OwExprUnaryConversionTable).

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 OwExprType[] ALL_TYPE_TYPES
          All types enumeration contents except the NOTYPE error marking type
static OwExprType[] ALL_TYPES
          All types enumeration contents
static OwExprType BOOLEAN
          BOOLEAN type denotes standard logical atomic values expressed as true and false (see OwExprBooleanValue)
static OwExprType DATE
          DATE type denotes calendar based dates (see OwExprDateValue)
static OwExprType NOTYPE
          NOTYPE type denotes an unknown type resulted form the compilation process.
static OwExprType NULL
          NULL type denotes an unknown-value or the no-value (see OwExprNullValue)
static OwExprType NUMERIC
          NUMERIC type denotes integer and floating point values (see OwExprNumericValue)
static OwExprType SCOPE
          SCOPE type denotes values interpreted as scopes (see OwExprScopeValue
static OwExprType STRING
          STRING type denotes UTF8 character arrays similar to the Java String type (see OwExprStringValue)
static OwExprType TIME
          TIME type denotes time spans (see OwExprTimeValue)
 
Method Summary
 boolean equals(Object obj_p)
           
static OwExprType fromJavaType(Object javaObject_p)
          Static java object type to expression language type conversion helper.

Expression Type Java Peer Type NUMERIC java.lang.Number STRING java.lang.String BOOLEAN java.lang.Boolean TIME OwExprTime DATE java.util.Calendar NULL Java's null literal type
If the javaObject_p's type does not match any of the previous table entries it will be converted to SCOPE
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static final OwExprType STRING
STRING type denotes UTF8 character arrays similar to the Java String type (see OwExprStringValue)


NUMERIC

public static final OwExprType NUMERIC
NUMERIC type denotes integer and floating point values (see OwExprNumericValue)


TIME

public static final OwExprType TIME
TIME type denotes time spans (see OwExprTimeValue)


DATE

public static final OwExprType DATE
DATE type denotes calendar based dates (see OwExprDateValue)


BOOLEAN

public static final OwExprType BOOLEAN
BOOLEAN type denotes standard logical atomic values expressed as true and false (see OwExprBooleanValue)


SCOPE

public static final OwExprType SCOPE
SCOPE type denotes values interpreted as scopes (see OwExprScopeValue


NULL

public static final OwExprType NULL
NULL type denotes an unknown-value or the no-value (see OwExprNullValue)


NOTYPE

public static final OwExprType NOTYPE
NOTYPE type denotes an unknown type resulted form the compilation process. It serves as an error indicator and has no corresponding value.


ALL_TYPES

public static final OwExprType[] ALL_TYPES
All types enumeration contents


ALL_TYPE_TYPES

public static final OwExprType[] ALL_TYPE_TYPES
All types enumeration contents except the NOTYPE error marking type

Method Detail

fromJavaType

public static final OwExprType fromJavaType(Object javaObject_p)
Static java object type to expression language type conversion helper.

Expression Type Java Peer Type
NUMERIC java.lang.Number
STRING java.lang.String
BOOLEAN java.lang.Boolean
TIME OwExprTime
DATE java.util.Calendar
NULL Java's null literal type

If the javaObject_p's type does not match any of the previous table entries it will be converted to SCOPE

Parameters:
javaObject_p - an object who's class is to be converted to its expression language peer type
Returns:
the expression language corresponding type for the passed object's type

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.