本文整理匯總了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 );
}
}