当前位置: 首页>>代码示例>>Java>>正文


Java Assert.assertNotBlank方法代码示例

本文整理汇总了Java中org.pentaho.di.core.util.Assert.assertNotBlank方法的典型用法代码示例。如果您正苦于以下问题:Java Assert.assertNotBlank方法的具体用法?Java Assert.assertNotBlank怎么用?Java Assert.assertNotBlank使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.core.util.Assert的用法示例。


在下文中一共展示了Assert.assertNotBlank方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: beginLoading

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 * Issue begin loading with default error tables.
 *
 * @param table
 *          the target table.
 * @return this.
 * @throws IllegalArgumentException
 *           if table is invalid.
 */
public FastloadControlBuilder beginLoading( final String schemaName, final String table ) throws IllegalArgumentException {
  Assert.assertNotBlank( table );
  this.builder.append( "BEGIN LOADING " );
  this.builder.append( table );
  this.builder.append( " ERRORFILES " );
  if ( !Utils.isEmpty( schemaName ) ) {
    this.builder.append( schemaName );
    this.builder.append( "." );
    this.builder.append( DEFAULT_ERROR_TABLE1 );
    this.builder.append( "," );
    this.builder.append( schemaName );
    this.builder.append( "." );
    this.builder.append( DEFAULT_ERROR_TABLE2 );
  } else {
    this.builder.append( DEFAULT_ERROR_TABLE1 );
    this.builder.append( "," );
    this.builder.append( DEFAULT_ERROR_TABLE2 );
  }
  return this.newline();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:30,代码来源:FastloadControlBuilder.java

示例2: GoogleAnalyticsApiFacade

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
public GoogleAnalyticsApiFacade( HttpTransport httpTransport, JsonFactory jsonFactory, String application,
                                 String oathServiceEmail, File keyFile )
  throws IOException, GeneralSecurityException {

  Assert.assertNotNull( httpTransport, "HttpTransport cannot be null" );
  Assert.assertNotNull( jsonFactory, "JsonFactory cannot be null" );
  Assert.assertNotBlank( application, "Application name cannot be empty" );
  Assert.assertNotBlank( oathServiceEmail, "OAuth Service Email name cannot be empty" );
  Assert.assertNotNull( keyFile, "OAuth secret key file cannot be null" );

  this.httpTransport = httpTransport;

  Credential credential = new GoogleCredential.Builder()
    .setTransport( httpTransport )
    .setJsonFactory( jsonFactory )
    .setServiceAccountScopes( AnalyticsScopes.all() )
    .setServiceAccountId( oathServiceEmail )
    .setServiceAccountPrivateKeyFromP12File( keyFile )
    .build();

  analytics = new Analytics.Builder( httpTransport, jsonFactory, credential )
    .setApplicationName( application )
    .build();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:GoogleAnalyticsApiFacade.java

示例3: logon

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 * Append log on.
 * 
 * @param dbhost
 *            DB host, e.g localtd
 * @param user
 *            the user.
 * @param password
 *            the password.
 * @return this
 * @throws IllegalArgumentException
 *             if input is invalid.
 */
public FastloadControlBuilder logon(final String dbhost, final String user, final String password)
        throws IllegalArgumentException {
    Assert.assertNotBlank(dbhost, "DB host must not be blank");
    Assert.assertNotBlank(user, "User must not be blank");
    Assert.assertNotNull(password, "Password must not be null");
    this.builder.append("LOGON ");
    this.builder.append(dbhost);
    this.builder.append('/');
    this.builder.append(user);
    this.builder.append(',');
    this.builder.append(password);
    return this.newline();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:27,代码来源:FastloadControlBuilder.java

示例4: beginLoading

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 * Issue begin loading with default error tables.
 * 
 * @param table
 *            the target table.
 * @return this.
 * @throws IllegalArgumentException
 *             if table is invalid.
 */
public FastloadControlBuilder beginLoading(final String table) throws IllegalArgumentException {
    Assert.assertNotBlank(table);
    this.builder.append("BEGIN LOADING ");
    this.builder.append(table);
    this.builder.append(" ERRORFILES ");
    this.builder.append(DEFAULT_ERROR_TABLE1);
    this.builder.append(",");
    this.builder.append(DEFAULT_ERROR_TABLE2);
    return this.newline();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:FastloadControlBuilder.java

示例5: logon

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 * Append log on.
 *
 * @param dbhost
 *          DB host, e.g localtd
 * @param user
 *          the user.
 * @param password
 *          the password.
 * @return this
 * @throws IllegalArgumentException
 *           if input is invalid.
 */
public FastloadControlBuilder logon( final String dbhost, final String user, final String password ) throws IllegalArgumentException {
  Assert.assertNotBlank( dbhost, "DB host must not be blank" );
  Assert.assertNotBlank( user, "User must not be blank" );
  Assert.assertNotNull( password, "Password must not be null" );
  this.builder.append( "LOGON " );
  this.builder.append( dbhost );
  this.builder.append( '/' );
  this.builder.append( user );
  this.builder.append( ',' );
  this.builder.append( password );
  return this.newline();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:26,代码来源:FastloadControlBuilder.java

示例6: setRecordFormat

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 * 
 * @param format
 *            the format.
 * @return this.
 * @throws IllegalArgumentException
 *             if format is invalid.
 */
public FastloadControlBuilder setRecordFormat(final String format) throws IllegalArgumentException {
    Assert.assertNotBlank(format, "Format must not be blank");
    return line("SET RECORD " + format);
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:13,代码来源:FastloadControlBuilder.java

示例7: setRecordFormat

import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
 *
 * @param format
 *          the format.
 * @return this.
 * @throws IllegalArgumentException
 *           if format is invalid.
 */
public FastloadControlBuilder setRecordFormat( final String format ) throws IllegalArgumentException {
  Assert.assertNotBlank( format, "Format must not be blank" );
  return line( "SET RECORD " + format );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:13,代码来源:FastloadControlBuilder.java


注:本文中的org.pentaho.di.core.util.Assert.assertNotBlank方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。