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


Java MissingTrans类代码示例

本文整理汇总了Java中org.pentaho.di.trans.steps.missing.MissingTrans的典型用法代码示例。如果您正苦于以下问题:Java MissingTrans类的具体用法?Java MissingTrans怎么用?Java MissingTrans使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MissingTrans类属于org.pentaho.di.trans.steps.missing包,在下文中一共展示了MissingTrans类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getErrorMessage

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
private String getErrorMessage( List<MissingTrans> missingTrans, int mode ) {
  String message = "";
  if ( mode == MISSING_TRANS_STEPS ) {
    StringBuilder entries = new StringBuilder();
    for ( MissingTrans entry : missingTrans ) {
      if ( missingTrans.indexOf( entry ) == missingTrans.size() - 1 ) {
        entries.append( "- " + entry.getStepName() + " - " + entry.getMissingPluginId() + "\n\n" );
      } else {
        entries.append( "- " + entry.getStepName() + " - " + entry.getMissingPluginId() + "\n" );
      }
    }
    message = BaseMessages.getString( PKG, "MissingTransDialog.MissingTransSteps", entries.toString() );
  }

  if ( mode == MISSING_TRANS_STEP_ID ) {
    message =
        BaseMessages.getString( PKG, "MissingTransDialog.MissingTransStepId", stepname + " - "
            + ( (MissingTrans) baseStepMeta ).getMissingPluginId() );
  }
  return message.toString();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:MissingTransDialog.java

示例2: stepMetaXmlConsistency

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
@Test
public void stepMetaXmlConsistency() throws Exception {
  StepMeta meta = new StepMeta( "id", "name", null );
  StepMetaInterface smi = new MissingTrans( meta.getName(), meta.getStepID() );
  meta.setStepMetaInterface( smi  );
  StepMeta fromXml = StepMeta.fromXml( meta.getXML() );
  assertThat( meta.getXML(), is( fromXml.getXML() ) );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:9,代码来源:StepMetaTest.java

示例3: MissingTransDialog

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public MissingTransDialog( Shell parent, List<MissingTrans> missingTrans, StepMetaInterface baseStepMeta,
    TransMeta transMeta, String stepname ) {
  super( parent, baseStepMeta, transMeta, stepname );
  this.shellParent = parent;
  this.missingTrans = missingTrans;
  this.mode = MISSING_TRANS_STEPS;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:MissingTransDialog.java

示例4: isMissing

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public boolean isMissing() {
  return this.stepMetaInterface instanceof MissingTrans;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:StepMeta.java

示例5: getMissingTrans

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public List<MissingTrans> getMissingTrans() {
  return missingTrans;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:TransMeta.java

示例6: addMissingTrans

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public void addMissingTrans( MissingTrans trans ) {
  if ( missingTrans == null ) {
    missingTrans = new ArrayList<>();
  }
  missingTrans.add( trans );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:TransMeta.java

示例7: removeMissingTrans

import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public void removeMissingTrans( MissingTrans trans ) {
  if ( missingTrans != null && trans != null && missingTrans.contains( trans ) ) {
    missingTrans.remove( trans );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:TransMeta.java


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