本文整理汇总了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();
}
示例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() ) );
}
示例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;
}
示例4: isMissing
import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public boolean isMissing() {
return this.stepMetaInterface instanceof MissingTrans;
}
示例5: getMissingTrans
import org.pentaho.di.trans.steps.missing.MissingTrans; //导入依赖的package包/类
public List<MissingTrans> getMissingTrans() {
return missingTrans;
}
示例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 );
}
示例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 );
}
}