Uses of Class
org.eclipse.birt.core.exception.BirtException
Packages that use BirtException
Package
Description
Provide BIRT's data util component.
Defines BIRT's Exception framework.
Provides a set of formatter classes.
Defines the platform interfaces that allow BIRT to be run in Eclipse and
server environments.
Provides Java Script support to BIRT.
-
Uses of BirtException in org.eclipse.birt.core.data
Methods in org.eclipse.birt.core.data that throw BirtExceptionModifier and TypeMethodDescriptionstatic List
ExpressionParserUtility.compileColumnExpression
(String expression) compile the expressionstatic List
ExpressionParserUtility.compileColumnExpression
(ExpressionParserUtility util, String expression, String indicator) compile the expressionstatic Object
convert an object to given type Types supported: DataType.INTEGER_TYPE DataType.DECIMAL_TYPE DataType.BOOLEAN_TYPE DataType.DATE_TYPE DataType.DOUBLE_TYPE DataType.STRING_TYPE DataType.BLOB_TYPE DataType.SQL_DATE_TYPE DataType.SQL_TIME_TYPEstatic Object
convert a object to given class Classes supported: Integer.class BigDecimal.class Boolean.class Time.class Date.class Double.class String.class Blob.classstatic List<IColumnBinding>
ExpressionUtil.extractColumnExpressions
(String oldExpression) Extract all column expression infostatic List<IColumnBinding>
ExpressionUtil.extractColumnExpressions
(String oldExpression, boolean mode) Deprecated.static List<IColumnBinding>
ExpressionUtil.extractColumnExpressions
(String oldExpression, String indicator) Extract all column expression infostatic String
Parse a date/time string.static String
Format a date/time object.static String
ExpressionUtil.generateConstantExpr
(String input, int dataType) Generate a Javascript constant expression by user input string and target BIRT data type.ExpressionHelper.getColumnBindingName
(String oldExpression) static String
ExpressionUtil.getColumnBindingName
(String oldExpression) Get the simplest column binding name.ExpressionHelper.getColumnName
(String oldExpression) static String
ExpressionUtil.getColumnName
(String oldExpression) Get the simplest column binding name.static String
DataTypeUtil.getDateFormat
(String source) Find the date format pattern string for a given datetime string without specified locale.static com.ibm.icu.text.DateFormat
DataTypeUtil.getDateFormat
(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone) Deprecated.use getDateFormatObject insteadstatic com.ibm.icu.text.SimpleDateFormat
DateFormatISO8601.getDateFormat
(String source, com.ibm.icu.util.TimeZone timeZone) Deprecated.use getSimpleDateFormat insteadstatic com.ibm.icu.text.DateFormat
DataTypeUtil.getDateFormatObject
(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone) Retrieve date format object that matches the given date/time stringstatic com.ibm.icu.text.SimpleDateFormat
DateFormatISO8601.getSimpleDateFormat
(String source, com.ibm.icu.util.TimeZone timeZone) Get a date format object that can parse the given date/time stringstatic boolean
ExpressionParserUtility.hasAggregation
(String expression) static boolean
ExpressionParserUtility.isDirectColumnRef
(String expression, String indicator) static Date
Parse a date/time string.static int
DataTypeUtil.toApiDataType
(int odaDataTypeCode) Converts an ODA data type code to its corresponding Data Engine API data type constant defined in DataType.static BigDecimal
DataTypeUtil.toBigDecimal
(Object source) Boolean -> BigDecimal true -> 1 others -> 0 Date -> BigDecimal Date.getTime(); String -> BigDecimal new BigDecimal(String);static Blob
Converting Blob to/from other types is not currently supportedstatic Boolean
Number -> Boolean 0 -> false others -> true String -> Boolean "true" -> true (ignore case) "false" -> false (ignore case) other string will throw an exception Date -> Boolean throw exceptionstatic byte[]
static Date
Number -> Date new Date((long)Number) String -> Date toDate(String)static Date
Convert a string to a Date instance according to the TimeZone valuestatic Date
convert String with the specified locale to java.util.Datestatic Date
DataTypeUtil.toDate
(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone) Parses a date/time stringstatic Date
A temp solution to the adoption of ICU4J to BIRT.static Date
DataTypeUtil.toDateWithCheck
(String source, com.ibm.icu.util.ULocale locale) Convert string to date with check.static Date
DataTypeUtil.toDateWithCheck
(String source, Locale locale) A temp solution to the adoption of ICU4J in BIRT.static Double
Boolean -> Double true -> 1 others -> 0 Date -> Double Date.getTime(); String -> Double Double.valueOf(String);static Integer
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime(); String -> Integer Integer.valueOf();static Integer
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime(); String -> Integer Integer.valueOf();static String
DataTypeUtil.toLocaleNeutralString
(Object source) Convert an object to an locale neutral String value.static String
DataTypeUtil.toLocaleNeutralString
(Object source, com.ibm.icu.util.TimeZone zone) Convert an object to an locale neutral String value.static Class
DataTypeUtil.toOdiTypeClass
(int odaDataTypeCode) Converts an ODA data type code to the Java class of its corresponding Data Engine ODI data type.static Date
Date -> Time String -> Timestatic Time
Date -> Time String -> Timestatic String
Number -> String Number.toString() Boolean -> String Boolean.toString() Date -> String toString(Date)static String
Number -> String Number.toString() Boolean -> String Boolean.toString() Date -> String toString(Date,locale)static String
A temp solution to the adoption of ICU4J.static Timestamp
DataTypeUtil.toTimestamp
(Object source) -
Uses of BirtException in org.eclipse.birt.core.exception
Subclasses of BirtException in org.eclipse.birt.core.exception -
Uses of BirtException in org.eclipse.birt.core.format
Methods in org.eclipse.birt.core.format that throw BirtExceptionModifier and TypeMethodDescriptionAutoFormatter.formatValue
(Object value) IFormatter.DefaultFormatter.formatValue
(Object value) IFormatter.formatValue
(Object value) format the value object into a string.LocaleNeutralFormatter.formatValue
(Object value) -
Uses of BirtException in org.eclipse.birt.core.framework
Subclasses of BirtException in org.eclipse.birt.core.frameworkModifier and TypeClassDescriptionclass
A checked exception representing a failure.Methods in org.eclipse.birt.core.framework that throw BirtExceptionModifier and TypeMethodDescriptionstatic void
Platform.startup()
static void
Platform.startup
(PlatformConfig config) startup the platform. -
Uses of BirtException in org.eclipse.birt.core.script
Methods in org.eclipse.birt.core.script that return BirtExceptionModifier and TypeMethodDescriptionstatic BirtException
JavascriptEvalUtil.wrapRhinoException
(org.mozilla.javascript.RhinoException e, String scriptText, String source, int lineNo) Converts Rhino exception (a runtime exception) to BirtExceptionMethods in org.eclipse.birt.core.script that throw BirtExceptionModifier and TypeMethodDescriptionstatic final Number
static final Number
add operation.static final int
static final int
MathUtil.compareTo0
(Object number) IScriptEngine.compile
(ScriptContext scriptContext, String fileName, int lineNumber, String script) Compiles the script for later execution.IScriptEngineFactory.createScriptEngine()
Returns an instance of IScriptEngine associated with this factory.static final Number
IScriptEngine.evaluate
(ScriptContext scriptContext, ICompiledScript script) Evaluates a compiled script.ScriptContext.evaluate
(ICompiledScript script) static Object
JavascriptEvalUtil.evaluateRawScript
(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, String scriptText, String source, int lineNo) This method will not convert the data of return value, so it might the Java data type or that of Java Script.static Object
JavascriptEvalUtil.evaluateScript
(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, String scriptText, String source, int lineNo) Evaluates Javascript expression and return its result, doing the necessary Javascript -> Java data type conversion if necessaryScriptContext.getScriptEngine
(String scriptName) static final Number
static final Number
static final Object
MathUtil.safeDivide
(Object dividend, Object divisor, Object ifZero) static final Number
static final Number
add operation.
extractColumnExpressions( String, String )
instead