本文整理汇总了Java中org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta.setRepeatElement方法的典型用法代码示例。如果您正苦于以下问题:Java XMLOutputMeta.setRepeatElement方法的具体用法?Java XMLOutputMeta.setRepeatElement怎么用?Java XMLOutputMeta.setRepeatElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta
的用法示例。
在下文中一共展示了XMLOutputMeta.setRepeatElement方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInfo
import org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta; //导入方法依赖的package包/类
private void getInfo(XMLOutputMeta tfoi)
{
tfoi.setFileName( wFilename.getText() );
tfoi.setEncoding( wEncoding.getText() );
tfoi.setNameSpace( wNameSpace.getText() );
tfoi.setMainElement( wMainElement.getText() );
tfoi.setRepeatElement( wRepeatElement.getText() );
tfoi.setExtension( wExtension.getText() );
tfoi.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
tfoi.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
tfoi.setDateTimeFormat(wDateTimeFormat.getText());
tfoi.setSpecifyFormat(wSpecifyFormat.getSelection());
tfoi.setStepNrInFilename( wAddStepnr.getSelection() );
tfoi.setDateInFilename( wAddDate.getSelection() );
tfoi.setTimeInFilename( wAddTime.getSelection() );
tfoi.setAddToResultFiles( wAddToResult.getSelection() );
tfoi.setZipped( wZipped.getSelection() );
//Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
tfoi.allocate(nrfields);
for (int i=0;i<nrfields;i++)
{
XMLField field = new XMLField();
TableItem item = wFields.getNonEmpty(i);
field.setFieldName( item.getText(1) );
field.setElementName( item.getText(2) );
if (field.getFieldName().equals(field.getElementName())) field.setElementName("");
field.setType( item.getText(3) );
field.setFormat( item.getText(4) );
field.setLength( Const.toInt(item.getText(5), -1) );
field.setPrecision( Const.toInt(item.getText(6), -1) );
field.setCurrencySymbol( item.getText(7) );
field.setDecimalSymbol( item.getText(8) );
field.setGroupingSymbol( item.getText(9) );
field.setNullString( item.getText(10) );
tfoi.getOutputFields()[i] = field;
}
}
示例2: getInfo
import org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta; //导入方法依赖的package包/类
private void getInfo(XMLOutputMeta xmlOutputMeta)
{
xmlOutputMeta.setFileName( wFilename.getText() );
xmlOutputMeta.setEncoding( wEncoding.getText() );
xmlOutputMeta.setNameSpace( wNameSpace.getText() );
xmlOutputMeta.setMainElement( wMainElement.getText() );
xmlOutputMeta.setRepeatElement( wRepeatElement.getText() );
xmlOutputMeta.setExtension( wExtension.getText() );
xmlOutputMeta.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
xmlOutputMeta.setServletOutput( wServletOutput.getSelection() );
xmlOutputMeta.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
xmlOutputMeta.setDateTimeFormat(wDateTimeFormat.getText());
xmlOutputMeta.setSpecifyFormat(wSpecifyFormat.getSelection());
xmlOutputMeta.setStepNrInFilename( wAddStepnr.getSelection() );
xmlOutputMeta.setDateInFilename( wAddDate.getSelection() );
xmlOutputMeta.setTimeInFilename( wAddTime.getSelection() );
xmlOutputMeta.setAddToResultFiles( wAddToResult.getSelection() );
xmlOutputMeta.setZipped( wZipped.getSelection() );
xmlOutputMeta.setOmitNullValues(wOmitNullValues.getSelection());
//Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
xmlOutputMeta.allocate(nrfields);
for (int i=0;i<nrfields;i++)
{
XMLField field = new XMLField();
TableItem item = wFields.getNonEmpty(i);
field.setFieldName( item.getText(1) );
field.setElementName( item.getText(2) );
if (field.getFieldName().equals(field.getElementName())) field.setElementName("");
field.setType( item.getText(3) );
field.setFormat( item.getText(4) );
field.setLength( Const.toInt(item.getText(5), -1) );
field.setPrecision( Const.toInt(item.getText(6), -1) );
field.setCurrencySymbol( item.getText(7) );
field.setDecimalSymbol( item.getText(8) );
field.setGroupingSymbol( item.getText(9) );
field.setNullString( item.getText(10) );
xmlOutputMeta.getOutputFields()[i] = field;
}
}
示例3: getInfo
import org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta; //导入方法依赖的package包/类
private void getInfo(XMLOutputMeta xmlOutputMeta)
{
xmlOutputMeta.setFileName( wFilename.getText() );
xmlOutputMeta.setEncoding( wEncoding.getText() );
xmlOutputMeta.setNameSpace( wNameSpace.getText() );
xmlOutputMeta.setMainElement( wMainElement.getText() );
xmlOutputMeta.setRepeatElement( wRepeatElement.getText() );
xmlOutputMeta.setExtension( wExtension.getText() );
xmlOutputMeta.setDoNotOpenNewFileInit(wDoNotOpenNewFileInit.getSelection() );
xmlOutputMeta.setServletOutput( wServletOutput.getSelection() );
xmlOutputMeta.setSplitEvery( Const.toInt(wSplitEvery.getText(), 0) );
xmlOutputMeta.setDateTimeFormat(wDateTimeFormat.getText());
xmlOutputMeta.setSpecifyFormat(wSpecifyFormat.getSelection());
xmlOutputMeta.setStepNrInFilename( wAddStepnr.getSelection() );
xmlOutputMeta.setDateInFilename( wAddDate.getSelection() );
xmlOutputMeta.setTimeInFilename( wAddTime.getSelection() );
xmlOutputMeta.setAddToResultFiles( wAddToResult.getSelection() );
xmlOutputMeta.setZipped( wZipped.getSelection() );
xmlOutputMeta.setOmitNullValues(wOmitNullValues.getSelection());
//Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
xmlOutputMeta.allocate(nrfields);
for (int i=0;i<nrfields;i++)
{
XMLField field = new XMLField();
TableItem item = wFields.getNonEmpty(i);
int index=1;
field.setFieldName( item.getText(index++) );
field.setElementName( item.getText(index++) );
if (field.getFieldName().equals(field.getElementName())) field.setElementName("");
field.setContentType( ContentType.valueOf(item.getText(index++)) );
field.setType( item.getText(index++) );
field.setFormat( item.getText(index++) );
field.setLength( Const.toInt(item.getText(index++), -1) );
field.setPrecision( Const.toInt(item.getText(index++), -1) );
field.setCurrencySymbol( item.getText(index++) );
field.setDecimalSymbol( item.getText(index++) );
field.setGroupingSymbol( item.getText(index++) );
field.setNullString( item.getText(index++) );
xmlOutputMeta.getOutputFields()[i] = field;
}
}
示例4: getInfo
import org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta; //导入方法依赖的package包/类
private void getInfo( XMLOutputMeta xmlOutputMeta ) {
xmlOutputMeta.setFileName( wFilename.getText() );
xmlOutputMeta.setEncoding( wEncoding.getText() );
xmlOutputMeta.setNameSpace( wNameSpace.getText() );
xmlOutputMeta.setMainElement( wMainElement.getText() );
xmlOutputMeta.setRepeatElement( wRepeatElement.getText() );
xmlOutputMeta.setExtension( wExtension.getText() );
xmlOutputMeta.setDoNotOpenNewFileInit( wDoNotOpenNewFileInit.getSelection() );
xmlOutputMeta.setServletOutput( wServletOutput.getSelection() );
xmlOutputMeta.setSplitEvery( Const.toInt( wSplitEvery.getText(), 0 ) );
xmlOutputMeta.setDateTimeFormat( wDateTimeFormat.getText() );
xmlOutputMeta.setSpecifyFormat( wSpecifyFormat.getSelection() );
xmlOutputMeta.setStepNrInFilename( wAddStepnr.getSelection() );
xmlOutputMeta.setDateInFilename( wAddDate.getSelection() );
xmlOutputMeta.setTimeInFilename( wAddTime.getSelection() );
xmlOutputMeta.setAddToResultFiles( wAddToResult.getSelection() );
xmlOutputMeta.setZipped( wZipped.getSelection() );
xmlOutputMeta.setOmitNullValues( wOmitNullValues.getSelection() );
// Table table = wFields.table;
int nrfields = wFields.nrNonEmpty();
xmlOutputMeta.allocate( nrfields );
for ( int i = 0; i < nrfields; i++ ) {
XMLField field = new XMLField();
TableItem item = wFields.getNonEmpty( i );
int index = 1;
field.setFieldName( item.getText( index++ ) );
field.setElementName( item.getText( index++ ) );
if ( field.getFieldName().equals( field.getElementName() ) ) {
field.setElementName( "" );
}
field.setContentType( ContentType.valueOf( item.getText( index++ ) ) );
field.setType( item.getText( index++ ) );
field.setFormat( item.getText( index++ ) );
field.setLength( Const.toInt( item.getText( index++ ), -1 ) );
field.setPrecision( Const.toInt( item.getText( index++ ), -1 ) );
field.setCurrencySymbol( item.getText( index++ ) );
field.setDecimalSymbol( item.getText( index++ ) );
field.setGroupingSymbol( item.getText( index++ ) );
field.setNullString( item.getText( index++ ) );
// CHECKSTYLE:Indentation:OFF
xmlOutputMeta.getOutputFields()[i] = field;
}
}