本文整理汇总了Java中org.eclipse.birt.core.exception.BirtException.getLocalizedMessage方法的典型用法代码示例。如果您正苦于以下问题:Java BirtException.getLocalizedMessage方法的具体用法?Java BirtException.getLocalizedMessage怎么用?Java BirtException.getLocalizedMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.birt.core.exception.BirtException
的用法示例。
在下文中一共展示了BirtException.getLocalizedMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public Object execute( Object[] args, IScriptFunctionContext context ) throws BirtException
{
Collator collator = (Collator) context.findProperty( "compare_locale" );
if ( args == null || args.length != 3 )
throw new IllegalArgumentException( MessageFormat.format( WRONG_ARGUMENT,
new Object[]{
BETWEEN
} ) );
try
{
return this.mode
? Boolean.valueOf( compare( args[0], args[1],collator ) >= 0
&& compare( args[0], args[2],collator ) <= 0 )
: Boolean.valueOf( !( compare( args[0], args[1],collator ) >= 0 && compare( args[0],
args[2],collator ) <= 0 ) );
}
catch ( BirtException e )
{
throw new IllegalArgumentException( e.getLocalizedMessage( ) );
}
}
示例2: executeQuery
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
/**
*
* @param session
* @param query
* @param appContext
* @throws AdapterException
*/
private void executeQuery( DataRequestSessionImpl session, IQueryDefinition query, Map appContext )
throws AdapterException
{
try
{
Scriptable scope = session.getScope( );
TempDateTransformer tt = new TempDateTransformer( session.getDataSessionContext( )
.getDataEngineContext( )
.getLocale( ) );
ScriptableObject.putProperty( scope, tt.getClassName( ), tt );
queryResult = session.prepare( query, appContext ).execute( scope );
this.it = queryResult.getResultIterator( );
}
catch ( BirtException e )
{
throw new AdapterException( e.getLocalizedMessage( ), e );
}
}
示例3: addException
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void addException( BirtException e )
{
for ( int i = 0; i < exList.size( ); i++ )
{
BirtException err = (BirtException) exList.get( i );
if ( e.getErrorCode( ) != null
&& e.getErrorCode( ).equals( err.getErrorCode( ) )
&& e.getLocalizedMessage( ) != null
&& e.getLocalizedMessage( ).equals(
err.getLocalizedMessage( ) ) )
{
countList.set( i,
Integer.valueOf( ( (Integer) countList.get( i ) ).intValue( ) + 1 ) );
return;
}
}
exList.add( e );
countList.add( Integer.valueOf( 1 ) );
}
示例4: TimeDimensionDatasetIterator
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
TimeDimensionDatasetIterator( DataRequestSessionImpl session, Date startTime, Date endTime, String[] fieldName, String[] timeType ) throws AdapterException
{
try
{
if( startTime != null )
{
this.calendar = Calendar.getInstance( session.getDataSessionContext( )
.getDataEngineContext( )
.getLocale( ) );
this.calendar.setTimeZone( session.getDataSessionContext( )
.getDataEngineContext( ).getTimeZone( ) );
this.calendar.clear( );
this.calendar.setTime( startTime );
}
this.endTime = endTime;
this.fieldName = fieldName;
this.timeType = timeType;
this.firstNext = false;
}
catch( BirtException e )
{
throw new AdapterException( e.getLocalizedMessage( ), e );
}
}
示例5: setInputParameterValue
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
/**
* Sets value of a data set input parameter
*/
public void setInputParameterValue(String paramName, Object paramValue)
throws ScriptException
{
try
{
dataSet.setInputParameterValue(paramName, paramValue);
} catch (BirtException e)
{
throw new ScriptException (e.getLocalizedMessage());
}
}
示例6: process
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public Object process( Object d ) throws AdapterException
{
try
{
return this.calculator.calculate( d );
}
catch ( BirtException e )
{
throw new AdapterException( e.getLocalizedMessage( ), e );
}
}
示例7: setOutputParameterValue
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
/**
* Sets value of a data set output parameter
*/
public void setOutputParameterValue(String paramName, Object paramValue)
throws ScriptException
{
try
{
dataSet.setOutputParameterValue(paramName, paramValue);
} catch (BirtException e)
{
throw new ScriptException (e.getLocalizedMessage());
}
}
示例8: getMemberValueIterator
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public Iterator getMemberValueIterator( TabularCubeHandle cubeHandle,
String dataBindingExpr, ICubeQueryDefinition queryDefn, Map appContext )
throws AdapterException
{
try
{
if ( cubeHandle == null
|| dataBindingExpr == null || queryDefn == null )
return null;
List bindings = queryDefn.getBindings();
Set dimLevels = OlapExpressionCompiler.getReferencedDimLevel( new ScriptExpression( dataBindingExpr ),
bindings,
true );
if ( dimLevels.size( ) == 0 || dimLevels.size( ) > 1 )
return null;
DimLevel target = (DimLevel) dimLevels.iterator( ).next( );
int targetDataType = getTargetDataType( bindings, dataBindingExpr );
TabularHierarchyHandle hierHandle = (TabularHierarchyHandle) ( cubeHandle.getDimension( target.getDimensionName( ) ).getContent( TabularDimensionHandle.HIERARCHIES_PROP,
0 ) );
if ( hierHandle.getDataSet( ) != null )
DefineDataSourceSetUtil.defineDataSourceAndDataSet( hierHandle.getDataSet( ),
this.sessionImpl );
else
DefineDataSourceSetUtil.defineDataSourceAndDataSet( cubeHandle.getDataSet( ),
this.sessionImpl );
Map levelValueMap = new HashMap( );
DataSetIterator it = createDataSetIterator( appContext, cubeHandle.getDimension( target.getDimensionName( ) ), String.valueOf( cubeHandle.getElement( ).getID( )) );
return new MemberValueIterator( it,
levelValueMap,
target.getLevelName( ), target.getAttrName( ) ,targetDataType);
}
catch ( BirtException e )
{
throw new AdapterException( e.getLocalizedMessage( ), e );
}
}
示例9: getColumnLabel
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public String getColumnLabel(int index) throws ScriptException {
try {
return meta.getColumnLabel(index);
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}
示例10: isComputedColumn
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public boolean isComputedColumn(int index) throws ScriptException {
try {
return meta.isComputedColumn(index);
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}
示例11: getColumnTypeName
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public String getColumnTypeName(int index) throws ScriptException {
try {
return meta.getColumnTypeName(index);
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}
示例12: setColumnValue
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public void setColumnValue( int index, Object value )
throws ScriptException
{
try
{
row.setColumnValue( index, value );
} catch ( BirtException e )
{
throw new ScriptException( e.getLocalizedMessage( ) );
}
}
示例13: getColumnNativeTypeName
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public String getColumnNativeTypeName(int index) throws ScriptException {
try {
return meta.getColumnNativeTypeName(index);
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}
示例14: getColumnType
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public int getColumnType(int index) throws ScriptException {
try {
return meta.getColumnType(index);
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}
示例15: getColumnMetaData
import org.eclipse.birt.core.exception.BirtException; //导入方法依赖的package包/类
public IColumnMetaData getColumnMetaData() throws ScriptException {
try {
return new ColumnMetaData(dataSet.getResultMetaData());
} catch (BirtException e) {
throw new ScriptException(e.getLocalizedMessage());
}
}