com.infoteria.asteria.flowlibrary2.component
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」というプロパティがあらかじめ登録されています。


Fields inherited from class com.infoteria.asteria.flowengine2.flow.Component
LOOP_CONTINUE, LOOP_END, LOOP_NOTHING, STATE_DEFAULT
 
Constructor Summary
SimpleComponent()
          コンストラクタ
SimpleComponent(int inputTypes, int outputTypes)
          入力可能なストリームフォーマットと出力可能なストリームフォーマットを指定するコンストラクタ。
 
Method Summary
protected  InputConnector getInputConnector()
          入力コネクタを取得します。
protected  OutputConnector getOutputConnector()
          出力コネクタを取得します。
protected  void passStream()
          入力コネクタのストリームをそのまま出力コネクタにセットします
入力コネクタが複数のリンクを受け入れる場合にこのメソッドを呼び出すとDeveloperExceptionが発生します。
入力ストリームがコンテナの場合も、 isExpandContainerの影響を受けずにそのままセットされます。
protected  void setOutputStream(StreamDataObject stream)
          setOutputStream(stream, true)と同じです。
protected  void setOutputStream(StreamDataObject stream, boolean isSetProperties)
          出力ストリームを設定します。
 
Methods inherited from class com.infoteria.asteria.flowengine2.flow.Component
cancel, checkLicense, clone, commit, endFlow, endLoop, execute, executeLoop, getCompiler, getComponentEntrance, getComponentExit, getComponentName, getExecuteCount, getFlowlibPath, getFullName, getIgnoreThroughStream, getMessage, getMessage, getMessage, getMessage, getMessageResource, getName, getProperty, getProperty, getPropertyCount, getState, getStateArray, hasProperty, init, internalInit, isBreakPoint, loopPossibility, pluginCall, preClone, registPriperty, registProperty, registProperty, release, releaseComponentExit, resetMacro, rollback, setExceptionParam, term
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleComponent

public SimpleComponent()
コンストラクタ

SimpleComponent

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

getInputConnector

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

getOutputConnector

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

passStream

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

setOutputStream

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

setOutputStream

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