当前位置: 首页>>代码示例>>Java>>正文


Java XMLOutputMeta.setNameSpace方法代码示例

本文整理汇总了Java中org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta.setNameSpace方法的典型用法代码示例。如果您正苦于以下问题:Java XMLOutputMeta.setNameSpace方法的具体用法?Java XMLOutputMeta.setNameSpace怎么用?Java XMLOutputMeta.setNameSpace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta的用法示例。


在下文中一共展示了XMLOutputMeta.setNameSpace方法的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;
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:49,代码来源:XMLOutputDialog.java

示例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;
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:51,代码来源:XMLOutputDialog.java

示例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;
	}
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:52,代码来源:XMLOutputDialog.java

示例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;
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:53,代码来源:XMLOutputDialog.java


注:本文中的org.pentaho.di.trans.steps.xmloutput.XMLOutputMeta.setNameSpace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。