public final class DocumentIds extends Object
identity-v1.md,
Section 6), as the reference's check-ids and fill-ids do (sqllr_ids.py,
DocumentIds and check_document).
Canonical segment keys are read from the document (canonicalKey); checking them against the
identifier-rule data is the IDENTITY stage's job. An endpoint declared LOCAL whose class is portable
is accepted and listed as unchecked, because the qualification policy needs the profile data.
A finding is reported where the reference reports it; every input the class cannot check is listed as a
note. Owner chains and derived-unit chains are walked with explicit lists, so their length is not limited by
the thread stack; a chain that returns to itself is a note (owners) or REF_OWNER_CYCLE (units).
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentIds.Report
Findings and notes of one run.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentIds.Report |
check(Object document)
check-ids: recomputes every id of a document, and the id of the dependency snapshot each analysis
context names (looked up among the snapshots this library ships). |
static DocumentIds.Report |
check(Object document,
Object snapshot)
As
check(Object), with the given dependency snapshot (a parsed snapshot file) for every context. |
static DocumentIds.Report |
fill(Object document)
fill-ids: a copy of the document with every computable id, numeric key, key and record id set,
and every id that is not computed removed. |
static List<String> |
shippedSnapshots()
The shipped snapshot files, sorted by path.
|
static String |
snapshotIdOf(Object snapshot)
The id of a dependency snapshot:
DependencySnapshotIdV1 of the file without snapshotId. |
public static DocumentIds.Report check(Object document)
check-ids: recomputes every id of a document, and the id of the dependency snapshot each analysis
context names (looked up among the snapshots this library ships).public static DocumentIds.Report check(Object document, Object snapshot)
check(Object), with the given dependency snapshot (a parsed snapshot file) for every context.public static DocumentIds.Report fill(Object document)
fill-ids: a copy of the document with every computable id, numeric key, key and record id set,
and every id that is not computed removed.public static String snapshotIdOf(Object snapshot)
DependencySnapshotIdV1 of the file without snapshotId.public static List<String> shippedSnapshots()