本文整理汇总了Java中org.pentaho.di.trans.steps.addxml.XMLField.setDecimalSymbol方法的典型用法代码示例。如果您正苦于以下问题:Java XMLField.setDecimalSymbol方法的具体用法?Java XMLField.setDecimalSymbol怎么用?Java XMLField.setDecimalSymbol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.steps.addxml.XMLField
的用法示例。
在下文中一共展示了XMLField.setDecimalSymbol方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInfo
import org.pentaho.di.trans.steps.addxml.XMLField; //导入方法依赖的package包/类
private void getInfo( AddDOMXMLMeta 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;
}
}
示例2: getInfo
import org.pentaho.di.trans.steps.addxml.XMLField; //导入方法依赖的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;
}
}
示例3: getInfo
import org.pentaho.di.trans.steps.addxml.XMLField; //导入方法依赖的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;
}
}
示例4: getInfo
import org.pentaho.di.trans.steps.addxml.XMLField; //导入方法依赖的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;
}
}