當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。