public class TraversalContext extends ObjectSE
PersistentPropertyAccessor を介して PersistentPropertyPaths の値をルックアップするためのコンテキストオブジェクト。これにより、特定のプロパティに対して返されたオブジェクトを後処理する関数を登録できるため、後続のトラバーサルでは処理されたオブジェクトが使用されます。これは、ネストされたプロパティを合理的にトラバースするために通常インデックスとキーを必要とする CollectionSE と MapSE を含むパスをトラバースする必要がある場合に特に役立ちます。| コンストラクターと説明 |
|---|
TraversalContext() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic TraversalContext registerHandler(PersistentProperty<?> property, FunctionSE<ObjectSE,ObjectSE> handler)
FunctionSE を登録します。property - null であってはなりません。handler - null であってはなりません。public TraversalContext registerCollectionHandler(PersistentProperty<?> property, FunctionSE<? super CollectionSE<?>,ObjectSE> handler)
CollectionSE 値を処理するために FunctionSE を登録します。property - null であってはなりません。handler - null であってはなりません。public TraversalContext registerListHandler(PersistentProperty<?> property, FunctionSE<? super ListSE<?>,ObjectSE> handler)
ListSE 値を処理するために FunctionSE を登録します。property - null であってはなりません。handler - null であってはなりません。public TraversalContext registerSetHandler(PersistentProperty<?> property, FunctionSE<? super SetSE<?>,ObjectSE> handler)
SetSE 値を処理するために FunctionSE を登録します。property - null であってはなりません。handler - null であってはなりません。public TraversalContext registerMapHandler(PersistentProperty<?> property, FunctionSE<? super MapSE<?,?>,ObjectSE> handler)
MapSE 値を処理するために FunctionSE を登録します。property - null であってはなりません。handler - null であってはなりません。public <T> TraversalContext registerHandler(PersistentProperty<?> property, ClassSE<T> type, FunctionSE<? super T,ObjectSE> handler)
FunctionSE を、指定された型の指定された PersistentProperty に対して取得された後処理値に登録します。T - 処理する値の型。property - null であってはなりません。type - null であってはなりません。handler - null であってはなりません。Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.