作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.pentaho.di.trans.steps.zipfile.ZipFileMeta.getDynamicSourceFileNameField()
方法的一些代码示例,展示了ZipFileMeta.getDynamicSourceFileNameField()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFileMeta.getDynamicSourceFileNameField()
方法的具体详情如下:
包路径:org.pentaho.di.trans.steps.zipfile.ZipFileMeta
类名称:ZipFileMeta
方法名:getDynamicSourceFileNameField
暂无
代码示例来源: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();
}
代码示例来源:origin: pentaho/pentaho-kettle
assertEquals( SOURCE_FILENAME, zipFileMeta.getDynamicSourceFileNameField() );
assertEquals( TARGET_FILENAME, zipFileMeta.getDynamicTargetFileNameField() );
assertEquals( BASE_FOLDER, zipFileMeta.getBaseFolderField() );
代码示例来源:origin: pentaho/pentaho-kettle
private void assertXmlOutputMeta( ZipFileMeta zipOutputFile ) {
assertEquals( "BaseFolder", zipOutputFile.getBaseFolderField() );
assertEquals( "Files", zipOutputFile.getDynamicSourceFileNameField() );
assertEquals( "ZipFile", zipOutputFile.getDynamicTargetFileNameField() );
assertEquals( null, zipOutputFile.getMoveToFolderField() );
assertEquals( " <sourcefilenamefield>Files</sourcefilenamefield>" + Const.CR
+ " <targetfilenamefield>ZipFile</targetfilenamefield>" + Const.CR
+ " <baseFolderField>BaseFolder</baseFolderField>" + Const.CR
+ " <operation_type>move</operation_type>" + Const.CR
+ " <addresultfilenames>Y</addresultfilenames>" + Const.CR
+ " <overwritezipentry>Y</overwritezipentry>" + Const.CR
+ " <createparentfolder>Y</createparentfolder>" + Const.CR
+ " <keepsourcefolder>Y</keepsourcefolder>" + Const.CR
+ " <movetofolderfield/>" + Const.CR, zipOutputFile.getXML() );
zipOutputFile.setDefault();
assertEquals( " <sourcefilenamefield>Files</sourcefilenamefield>" + Const.CR
+ " <targetfilenamefield>ZipFile</targetfilenamefield>" + Const.CR
+ " <baseFolderField>BaseFolder</baseFolderField>" + Const.CR
+ " <operation_type/>" + Const.CR
+ " <addresultfilenames>N</addresultfilenames>" + Const.CR
+ " <overwritezipentry>N</overwritezipentry>" + Const.CR
+ " <createparentfolder>N</createparentfolder>" + Const.CR
+ " <keepsourcefolder>N</keepsourcefolder>" + Const.CR
+ " <movetofolderfield/>" + Const.CR, zipOutputFile.getXML() );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( Utils.isEmpty( meta.getDynamicSourceFileNameField() ) ) {
throw new KettleException( BaseMessages.getString( PKG, "ZipFile.Error.SourceFilenameFieldMissing" ) );
data.indexOfSourceFilename = getInputRowMeta().indexOfValue( meta.getDynamicSourceFileNameField() );
if ( data.indexOfSourceFilename < 0 ) {
.getDynamicSourceFileNameField() ) );
代码示例来源:origin: pentaho/pentaho-kettle
@Test
public void testGettersSetters() {
ZipFileMeta zipFileMeta = new ZipFileMeta();
zipFileMeta.setDynamicSourceFileNameField( SOURCE_FILENAME );
zipFileMeta.setDynamicTargetFileNameField( TARGET_FILENAME );
zipFileMeta.setBaseFolderField( BASE_FOLDER );
zipFileMeta.setOperationType( ZipFileMeta.getOperationTypeByDesc( OPERATION_TYPE ) );
zipFileMeta.setaddTargetFileNametoResult( ADD_RESULT_FILENAME );
zipFileMeta.setOverwriteZipEntry( OVERWRITE_ZIP_ENTRY );
zipFileMeta.setCreateParentFolder( CREATE_PARENT_FOLDER );
zipFileMeta.setKeepSouceFolder( KEEP_SOURCE_FOLDER );
zipFileMeta.setMoveToFolderField( MOVE_TO_FOLDER_FIELD );
assertEquals( SOURCE_FILENAME, zipFileMeta.getDynamicSourceFileNameField() );
assertEquals( TARGET_FILENAME, zipFileMeta.getDynamicTargetFileNameField() );
assertEquals( BASE_FOLDER, zipFileMeta.getBaseFolderField() );
assertEquals( ZipFileMeta.getOperationTypeByDesc( OPERATION_TYPE ), zipFileMeta.getOperationType() );
assertEquals( MOVE_TO_FOLDER_FIELD, zipFileMeta.getMoveToFolderField() );
assertTrue( zipFileMeta.isaddTargetFileNametoResult() );
assertTrue( zipFileMeta.isOverwriteZipEntry() );
assertTrue( zipFileMeta.isKeepSouceFolder() );
assertTrue( zipFileMeta.isCreateParentFolder() );
assertEquals( MOVE_TO_FOLDER_FIELD, zipFileMeta.getMoveToFolderField() );
assertNotNull( zipFileMeta.getStepData() );
assertTrue( zipFileMeta.supportsErrorHandling() );
}
本文整理了Java中org.pentaho.di.trans.steps.zipfile.ZipFileMeta.getDynamicSourceFileNameField()方法的一些代码示例,展示
我是一名优秀的程序员,十分优秀!