本文整理汇总了Java中org.pentaho.di.trans.steps.addxml.AddXMLMeta类的典型用法代码示例。如果您正苦于以下问题:Java AddXMLMeta类的具体用法?Java AddXMLMeta怎么用?Java AddXMLMeta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AddXMLMeta类属于org.pentaho.di.trans.steps.addxml包,在下文中一共展示了AddXMLMeta类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInfo
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
private void getInfo(AddXMLMeta tfoi)
{
tfoi.setEncoding( wEncoding.getText() );
tfoi.setValueName( wOutputValue.getText() );
tfoi.setRootNode( wRepeatElement.getText() );
tfoi.setOmitXMLheader( wOmitXMLHeader.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) );
field.setAttribute( Messages.getString("System.Combo.Yes").equals(item.getText(11)) );
field.setAttributeParentName(item.getText(12));
tfoi.getOutputFields()[i] = field;
}
}
示例2: getInfo
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
private void getInfo(AddXMLMeta tfoi)
{
tfoi.setEncoding( wEncoding.getText() );
tfoi.setValueName( wOutputValue.getText() );
tfoi.setRootNode( wRepeatElement.getText() );
tfoi.setOmitXMLheader( wOmitXMLHeader.getSelection() );
tfoi.setOmitNullValues( wOmitNullValues.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) );
field.setAttribute( BaseMessages.getString(PKG, "System.Combo.Yes").equals(item.getText(11)) );
field.setAttributeParentName(item.getText(12));
tfoi.getOutputFields()[i] = field;
}
}
示例3: getInfo
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
private void getInfo( AddXMLMeta tfoi ) {
tfoi.setEncoding( wEncoding.getText() );
tfoi.setValueName( wOutputValue.getText() );
tfoi.setRootNode( wRepeatElement.getText() );
tfoi.setOmitXMLheader( wOmitXMLHeader.getSelection() );
tfoi.setOmitNullValues( wOmitNullValues.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 ) );
field.setAttribute( BaseMessages.getString( PKG, "System.Combo.Yes" ).equals( item.getText( 11 ) ) );
field.setAttributeParentName( item.getText( 12 ) );
// CHECKSTYLE:Indentation:OFF
tfoi.getOutputFields()[i] = field;
}
}
示例4: AddXMLDialog
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
public AddXMLDialog(Shell parent, Object in, TransMeta transMeta, String sname)
{
super(parent, (BaseStepMeta)in, transMeta, sname);
input=(AddXMLMeta)in;
}
示例5: AddXMLDialog
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
public AddXMLDialog(Shell parent, Object in, TransMeta transMeta, String sname)
{
super(parent, (BaseStepMeta)in, transMeta, sname);
input=(AddXMLMeta)in;
inputFields =new HashMap<String, Integer>();
}
示例6: AddXMLDialog
import org.pentaho.di.trans.steps.addxml.AddXMLMeta; //导入依赖的package包/类
public AddXMLDialog( Shell parent, Object in, TransMeta transMeta, String sname ) {
super( parent, (BaseStepMeta) in, transMeta, sname );
input = (AddXMLMeta) in;
inputFields = new HashMap<String, Integer>();
}