gpt4 book ai didi

org.pentaho.di.trans.steps.zipfile.ZipFileMeta.getOperationTypeDesc()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 01:40:31 27 4
gpt4 key购买 nike

本文整理了Java中org.pentaho.di.trans.steps.zipfile.ZipFileMeta.getOperationTypeDesc()方法的一些代码示例,展示了ZipFileMeta.getOperationTypeDesc()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFileMeta.getOperationTypeDesc()方法的具体详情如下:
包路径:org.pentaho.di.trans.steps.zipfile.ZipFileMeta
类名称:ZipFileMeta
方法名:getOperationTypeDesc

ZipFileMeta.getOperationTypeDesc介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Test
public void testOperationType() {
 assertEquals( 0, ZipFileMeta.getOperationTypeByDesc( null ) );
 assertEquals( 1, ZipFileMeta.getOperationTypeByDesc( "Move source file" ) );
 assertEquals( 1, ZipFileMeta.getOperationTypeByDesc( "move" ) );
 assertEquals( 0, ZipFileMeta.getOperationTypeByDesc( "doesn't exist" ) );
 assertEquals( "Move source file", ZipFileMeta.getOperationTypeDesc( 1 ) );
 assertEquals( "Do nothing", ZipFileMeta.getOperationTypeDesc( 100 ) );
 assertEquals( "Do nothing", ZipFileMeta.getOperationTypeDesc( -1 ) );
}

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * Copy information from the meta-data input to the dialog fields.
 */
public void getData() {
 if ( log.isDebug() ) {
  log.logDebug( toString(), BaseMessages.getString( PKG, "ZipFileDialog.Log.GettingKeyInfo" ) );
 }
 if ( input.getBaseFolderField() != null ) {
  wBaseFolderField.setText( input.getBaseFolderField() );
 }
 if ( input.getDynamicSourceFileNameField() != null ) {
  wSourceFileNameField.setText( input.getDynamicSourceFileNameField() );
 }
 if ( input.getDynamicTargetFileNameField() != null ) {
  wTargetFileNameField.setText( input.getDynamicTargetFileNameField() );
 }
 wOperation.setText( ZipFileMeta.getOperationTypeDesc( input.getOperationType() ) );
 if ( input.getMoveToFolderField() != null ) {
  wMoveToFolderField.setText( input.getMoveToFolderField() );
 }
 wAddResult.setSelection( input.isaddTargetFileNametoResult() );
 wOverwriteZipEntry.setSelection( input.isOverwriteZipEntry() );
 wCreateParentFolder.setSelection( input.isCreateParentFolder() );
 wKeepFolders.setSelection( input.isKeepSouceFolder() );
 wStepname.selectAll();
 wStepname.setFocus();
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com