public class StartState extends State
StartState marks the logical beginning of a new Criteria.| Constructor and Description |
|---|
StartState(BuiltCriteria criteria)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BuildableStartState |
group(Criteria criteria)
Add a sub
criteria to the Criteria that is building. |
BuildableStartState |
group(Object criteria)
Add a sub
criteria to the Criteria that is building. |
KeyState |
key(String key)
Add a
key to the Criteria that is building. |
BuildableStartState |
scope(String prefix,
Criteria criteria)
Add a scoped sub
Criteria pinned at the prefix navigation
path. |
BuildableStartState |
scope(String prefix,
Object criteria)
|
public StartState(BuiltCriteria criteria)
criteria - public BuildableStartState group(Criteria criteria)
criteria to the Criteria that is building. A sub
criteria is one that is wrapped in parenthesis.criteria - public BuildableStartState group(Object criteria)
criteria to the Criteria that is building. A sub
criteria is one that is wrapped in parenthesis.criteria - public KeyState key(String key)
key to the Criteria that is building.key - public BuildableStartState scope(String prefix, Criteria criteria)
Criteria pinned at the prefix navigation
path. Every condition in the inner criteria must be satisfied by
the same destination record reachable via prefix,
eliminating cross-link false positives that arise when conditions
co-navigating a multi-valued link are combined with AND.prefix - the navigation prefix that pins the pivot at which the
inner conditions are evaluated; may be a single key, a dotted
multi-segment path, or a transitive path. If the prefix has no
link values at the traversal time — whether the key has
never been a link, carries only non-link values, or had its
links removed — the scope produces no matchescriteria - the inner Criteria, built or buildingpublic BuildableStartState scope(String prefix, Object criteria)
Criteria pinned at the prefix navigation
path when the caller forgets to build the
inner criteria.prefix - the navigation prefix at which the inner conditions are
evaluatedcriteria - the inner Criteria, expected to be a
BuildableState