bpriver_origin library

Classes

Announcement
Announcement
Application
不特定多数の end user から利用されることを目的とした routine を集約する routine. developer からではなく end user の利用を想定して作られる.
Barrel
Concept を集約する Separate.
Box<V extends Object>
BpriverJson
BpriverYaml
CollectionStyle
An enum of collection styles.
Complement
EntryPoint を補完する Concept.
Complete
Result もしくは Safety の V に void を指定する代わりに利用するための型.
V が dynamic または Object? を許容できるようにすると 静的型解析が働かず 型解析に関する実行時 error の危険が生じてしまい その場合どこで error が発生したのかわからず追跡が難しい.
Computation
Concept を計量可能にするための Concept.
Concept
Danger<V extends Object, E extends Exception>
Result との違いは E が Object ではなく Exception であること.
成功もしくは失敗の可能性があることを示す型.
V で void を指定したい場合, 代わりに Complete を指定する.
Directive
UI を構成するための UserInterface.
Disaster<V extends Object, EX extends Exception, ER extends Error>
RiskDanger の両方を伴うことを表す型.
Suffer もしくは Survive を返す.
V で void を指定したい場合, 代わりに Complete を指定する.
Empty<V extends Object>
Enforcer
UserInterface から 受け取った data を基に ModelRelay を操作し その結果を UserInterface へと返す EntryPoint.
EntryPoint
概念のモデリングを行い定義する際に中核となる material. 文字通り entry point の役割も担う.
Failure<V extends Object, E extends Exception>
Full<V extends Object>
History
InactivateSignature
test 時 property の一部を無効化する(一定の値に変更する), 等価比較を行うための method.
例えば process id など, system によって割り振られる値をこちらで指定できないので 等価比較ができない.
Interface
Signature が 1つの slot や function に対する 型の構成を指すのに対し,
Interface は 1つの class に対する型の構成(その class がどのような property や method を持っているかなど)を指す Complement.
IterablePatternIterator<T>
Layer
Concept を集約する Separate.
Library
不特定多数の application から利用されることを目的とした routine を集約する routine. middleware. developer からの利用を想定している.
Log
LoggerResultInterface
LoggerResultInterface を implements した class を log として追加できるように.
LoggerResultMessageSignature
この class を implements した class が Log.wrapped に設定されたとき LoggerResultMessageSignature.loggerResultMessage の中身が shortHand 表記でも log で表示されるようになる.
LogPart
Model
Model は、immutable なものとして定義しなければならない。 つまり、immutable な、property のみで定義をする。
Module
Application を構成する一番大まかな単位の Separate. 複数の routine を集約する routine. Application は module の集まりで構成される.
Monolith
monolith.
NonNullableObservable<VT extends Object>
VT ・・・ ValueType
NotExist
Log.classLocationLog.resultType を指定しないに場合に適用するためだけに存在する class.
NullableObservable<VT>
VT ・・・ ValueType
Origin
プログラムを開発する際の根底となるような機能で 相互依存させた方が都合の良いもの.
Panic<E extends Error>
Error が発生したことを表す型.
プログラムを停止させる処理に利用する.
Error をそのまま throw しただけでは log の情報が付与されないため PanicError を wrap する必要がある.
PropertiesSignature
inactivate(), = operator, [] operator, など に依存されている.
Relay
relay は 観点である.
Result<V extends Object>
Risk<V extends Object, E extends Error>
呼び出し側の handling で回避しなければならない error が存在することを示す型.
なので 単純に error を throw する記述があることを示す型ではない.
例えば exception handling で throw out で error を throw する記述をするが その error は この Risk 型で示す対象ではない.
V で void を指定したい場合, 代わりに Complete を指定する.
error だった場合 throw されるので 返り値は は success のみである.
また このときの E は error があることを呼び出し側に示すためだけにあるので 表記できればそれで仕事はおわりである.
Safety<V extends Object>
Danger とは対照的に 必ず 成功した結果を返すことを示す型.
V で void を指定したい場合, 代わりに Complete を指定する.
ScalarStyle
An enum of source scalar styles.
Separate
機能は持たない。 分類が役割。
Setting
setting model.
Signal
signal model.
Signature
routine の中でも slot や function に対する return type, name, argument などの 型情報の事を指す Complement.
Specific
Signature とは対照的に routine の 処理(実装)部分を指す Complement.
Staging
staging model. UserInterface の見た目に関する model.
Subject
subject model.
Success<V extends Object, E extends Exception>
Suffer<V extends Object, EX extends Exception, ER extends Error>
Survive<V extends Object, EX extends Exception, ER extends Error>
TagDirective
A directive describing a custom tag handle.
Terminal
cui を通して user と I/O を行う.
Thin
thin model.
ToJsonSignature
ここでの toJson とは json へ encode 可能な形式へ変換するという意味で使われる.
つまり json string を返すというわけではない.
また serialize としても利用するため deserialize 可能でなければならない.
Unified
unified model
UserInterface
VersionDirective
A directive indicating which version of YAML a document was written to.
Viewpoint
継承構造とは別に、新たなカテゴリーを作る Complement.
YamlDocument
A YAML document, complete with metadata.
YamlList
A read-only List parsed from YAML.
YamlMap
A read-only Map parsed from YAML.
YamlNode
An interface for parsed nodes from a YAML source tree.
YamlScalar
A wrapped scalar value parsed from YAML.

Mixins

AggregationPattern
1.toPrimitive() を override する => hashCode, ==, [], toString(), も自動的に更新される。
AggregationPatternTester
AggregationPatternToShorthandSignature
DesignPatternToNestedStructureMapEntrySignature
DesignPatternToNestedStructureMapSignature
EntityPattern<PK extends Object>
PK...PrimaryKey
EnumPattern
1つの固定値のみを持つ pattern.
IterablePattern<VT extends Object>
IterablePatternInternalFactory<VT extends Object, RT extends Result<Iterable<VT>>>
IterablePattern の 内部用の factory method.
ListPattern<VT extends Object>
ListPatternPrivateMemberTester<VT extends Object>
RosterPattern<PK extends Object, VT extends EntityPattern<PK>>
throwable RosterPatternExceptionA.
RosterPatternPut<PK extends Object, VT extends EntityPattern<PK>, RT extends Result<Iterable<VT>>>
PK...primary key VT...vlaue type RT... return type
RosterPatternPutAll<PK extends Object, VT extends EntityPattern<PK>, RT extends Result<Iterable<VT>>>
PK...primary key VT...vlaue type RT... return type
SetPattern<VT extends Object>
VT・・・ValueType
ValuePattern<VT extends Object>
VT ・・・ ValueType

Properties

yamlWarningCallback YamlWarningCallback
A callback for emitting a warning.
getter/setter pair

Functions

loadYaml(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) → dynamic
Loads a single document from a YAML string.
loadYamlDocument(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) YamlDocument
Loads a single document from a YAML string as a YamlDocument.
loadYamlDocuments(String yaml, {Uri? sourceUrl}) List<YamlDocument>
Loads a stream of documents from a YAML string.
loadYamlNode(String yaml, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener}) YamlNode
Loads a single document from a YAML string as a YamlNode.
loadYamlStream(String yaml, {Uri? sourceUrl}) YamlList
Loads a stream of documents from a YAML string.

Typedefs

FutureComplete = Future<Complete>
FutureDanger<V extends Object, E extends Exception> = Future<Danger<V, E>>
FutureDisaster<V extends Object, EX extends Exception, ER extends Error> = Future<Disaster<V, EX, ER>>
FutureFailure<V extends Object, E extends Exception> = Future<Failure<V, E>>
FutureResult<V extends Object, EX extends Exception, ER extends Error> = Future<Result<V>>
FutureSafety<V extends Object> = Future<Safety<V>>
FutureSuccess<V extends Object, E extends Exception> = Future<Success<V, E>>
YamlWarningCallback = void Function(String message, [SourceSpan? span])
A callback for emitting a warning.

Exceptions / Errors

AggregationPatternError
  • AggregationPatternErrorA

  • AggregationPatternErrorB

  • AggregationPatternErrorC

  • AggregationPatternErrorD

  • AggregationPatternErrorE

  • AggregationPatternErrorF

  • AggregationPatternErrorG

  • AggregationPatternErrorA
    old BPRiverOriginErrorA.
    [] operator で無効な key を指定.
    BpriverJsonError
    BpriverJsonException
    BpriverJsonExceptionA
    指定した type の value を取得できなかった.
    BpriverJsonExceptionB
    exists invalid values element.
    BpriverJsonExceptionC
    not exists valid key.
    BpriverYamlError
    BpriverYamlException
    BpriverYamlExceptionA
    1つの task file に複数の yaml document が含まれています.
    BpriverYamlExceptionB
    yaml document contents is not yaml list.
    BpriverYamlExceptionC
    yaml document contents is not yaml map.
    BpriverYamlExceptionD
    指定された yaml map の中には 指定した key は存在しませんでした.
    BpriverYamlExceptionDE
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionDEF
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionDEFH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDEH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDFH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionDH
  • BpriverYamlExceptionD 指定された yaml map の中には 指定した key は存在しませんでした.
  • BpriverYamlExceptionH 指定の yaml map から 指定した key で想定外の type の value を取得した.
  • BpriverYamlExceptionE
    指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
    BpriverYamlExceptionEF
  • BpriverYamlExceptionE 指定された yaml map の中で 指定された key の値の type が 指定したものと異なりました.
  • BpriverYamlExceptionF 指定された element は 指定された type ではありませんでした.
  • BpriverYamlExceptionF
    指定された element は 指定された type ではありませんでした.
    BpriverYamlExceptionG
    指定された yaml map の長さが 指定された長さと異なる.
    BpriverYamlExceptionH
    指定の yaml map から 指定した key で想定外の type の value を取得した.
    BpriverYamlExceptionI
    failed to convert to yaml.
    BpriverYamlExceptionJ
    yaml document contents type is not T.
    EnumPatternError
  • EnumPatternErrorA old BPRiverOriginErrorD.
    fromType constructor で無効な Type を指定.
    考えられる可能性.
  • EnumPatternErrorA
    old BPRiverOriginErrorD.
    fromType constructor で無効な Type を指定.
    考えられる可能性.
    EnumPatternException
  • EnumPatternExceptionA old BPRiverOriginExceptionD.
    input invalid value to fromValue() constructor.

  • EnumPatternExceptionB

  • EnumPatternExceptionC

  • EnumPatternExceptionD

  • EnumPatternExceptionE

  • EnumPatternExceptionF

  • EnumPatternExceptionG

  • EnumPatternExceptionA
    old BPRiverOriginExceptionD.
    input invalid value to fromValue() constructor.
    IterablePatternException
  • IterablePatternExceptionA old BPRiverOriginExceptionE.
    index is negative number at IterablePattern.getByIndex.

  • IterablePatternExceptionB old BPRiverOriginExceptionF.
    index over length at IterablePattern.getByIndex.

  • IterablePatternExceptionC old BPRiverOriginExceptionG.
    length is zero(not exists element) at IterablePattern.getByIndex.

  • IterablePatternExceptionD

  • IterablePatternExceptionE

  • IterablePatternExceptionF

  • IterablePatternExceptionG

  • IterablePatternExceptionA
    old BPRiverOriginExceptionE.
    index is negative number at IterablePattern.getByIndex.
    IterablePatternExceptionABC
    old BPRiverOriginExceptionEFG.
    IterablePatternExceptionB
    old BPRiverOriginExceptionF.
    index over length at IterablePattern.getByIndex.
    IterablePatternExceptionC
    old BPRiverOriginExceptionG.
    length is zero(not exists element) at IterablePattern.getByIndex.
    IterablePatternIteratorError
  • IterablePatternIteratorErrorA old BPRiverOriginErrorB.
    _current が null.

  • IterablePatternIteratorErrorB

  • IterablePatternIteratorErrorC

  • IterablePatternIteratorErrorD

  • IterablePatternIteratorErrorE

  • IterablePatternIteratorErrorF

  • IterablePatternIteratorErrorG

  • IterablePatternIteratorErrorA
    old BPRiverOriginErrorB.
    _current が null.
    LoggerResultException
    LoggerResultlError
  • LoggerResultlErrorA Result.wrapped is not expected. Can't call Result.asExpected.

  • LoggerResultlErrorB Result.wrapped is not exception. Can't call Result.asException.

  • LoggerResultlErrorC Result.wrapped is not error. Can't call Result.asError.

  • LoggerResultlErrorD never reached proccess.

  • LoggerResultlErrorE

  • LoggerResultlErrorF

  • LoggerResultlErrorG

  • LoggerResultlErrorA
    Result.wrapped is not expected. Can't call Result.asExpected.
    LoggerResultlErrorB
    Result.wrapped is not exception. Can't call Result.asException.
    LoggerResultlErrorC
    Result.wrapped is not error. Can't call Result.asError.
    LoggerResultlErrorD
    never reached proccess.
    RosterPatternException
  • RosterPatternExceptionA old BPRiverOriginExceptionA.
    exists duplicate primary key.

  • RosterPatternExceptionB old BPRiverOriginExceptionB.
    not exists targeted primary key at RosterPattern.getByPrimaryKey.

  • RosterPatternExceptionC

  • RosterPatternExceptionD

  • RosterPatternExceptionE

  • RosterPatternExceptionF

  • RosterPatternExceptionG

  • RosterPatternExceptionA
    old BPRiverOriginExceptionA.
    exists duplicate primary key.
    RosterPatternExceptionB
    old BPRiverOriginExceptionB.
    not exists targeted primary key at RosterPattern.getByPrimaryKey.
    SetPatternException
  • SetPatternExceptionA old BPRiverOriginExceptionC.
    exists duplicate.

  • SetPatternExceptionB

  • SetPatternExceptionC

  • SetPatternExceptionD

  • SetPatternExceptionE

  • SetPatternExceptionF

  • SetPatternExceptionG

  • SetPatternExceptionA
    old BPRiverOriginExceptionC.
    exists duplicate.
    YamlException
    An error thrown by the YAML processor.