Class SimpleComponent

java.lang.Object
com.infoteria.asteria.flowengine2.flow.Component
com.infoteria.asteria.flowlibrary2.component.SimpleComponent
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MapperComponent, MultiConnectorComponent

public abstract class SimpleComponent extends Component
入力コネクタ1本、出力コネクタ1本のシンプルなコンポーネントの基底クラスです。
このクラスでは「Exception」というプロパティがあらかじめ登録されています。
  • Constructor Details

    • SimpleComponent

      public SimpleComponent()
      コンストラクタ
    • SimpleComponent

      public SimpleComponent(int inputTypes, int outputTypes)
      入力可能なストリームフォーマットと出力可能なストリームフォーマットを指定するコンストラクタ。
      Parameters:
      inputTypes - 入力可能ストリームフォーマット。StreamTypeクラスのシンボルを使用して設定します。
      outputTypes - 出力可能ストリームフォーマット。StreamTypeクラスのシンボルを使用して設定します。
  • Method Details

    • getInputConnector

      protected InputConnector getInputConnector()
      入力コネクタを取得します。
    • getOutputConnector

      protected OutputConnector getOutputConnector()
      出力コネクタを取得します。
    • passStream

      protected void passStream() throws StreamException
      入力コネクタのストリームをそのまま出力コネクタにセットします
      入力コネクタが複数のリンクを受け入れる場合にこのメソッドを呼び出すとDeveloperExceptionが発生します。
      入力ストリームがコンテナの場合も、 isExpandContainerの影響を受けずにそのままセットされます。
      Throws:
      StreamException
    • setOutputStream

      protected void setOutputStream(StreamDataObject stream) throws StreamException
      setOutputStream(stream, true)と同じです。
      Throws:
      StreamException
    • setOutputStream

      protected void setOutputStream(StreamDataObject stream, boolean isSetProperties) throws StreamException
      出力ストリームを設定します。
      Parameters:
      stream - 設定するストリーム
      isSetProperties - trueの場合、streamに対してStreamFactory#setPropertiesを適用します。
      Throws:
      StreamException