public final class NameSegment extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NameSegment.Builder
Collects the members of a new
NameSegment. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<NameSegment> |
READER
Reads a JSON object as a
NameSegment. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static NameSegment.Builder |
builder() |
static NameSegment |
fromJson(Object json)
A
NameSegment with the members of a JSON object, all kept. |
String |
getCanonicalKey()
The member
canonicalKey. |
String |
getInputForm()
The member
inputForm. |
String |
getKeyUnavailable()
The member
keyUnavailable. |
String |
getKind()
The member
kind. |
String |
getProvenance()
The member
provenance. |
String |
getQuoteState()
The member
quoteState. |
String |
getRole()
The member
role. |
String |
getText()
The member
text. |
NameSegment.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<NameSegment> READER
NameSegment.public static NameSegment fromJson(Object json)
NameSegment with the members of a JSON object, all kept.public static NameSegment.Builder builder()
public NameSegment.Builder toBuilder()
public String getRole()
role. The role of a name segment. Registry group 'segmentRoles' (Sections
6.3 and 9.1). Null when absent; throws IllegalStateException when the member holds another
JSON type.public String getKind()
kind. The kind of a name segment. Registry group 'nameSegmentKinds'
(Section 9.1). Null when absent; throws IllegalStateException when the member holds another
JSON type.public String getText()
text. The segment text: as written (SQL_LEXICAL, without delimiters), as
stored (CATALOG_STORED), or byte-for-byte for AUTHORITY and LOCATION. Null when absent;
throws IllegalStateException when the member holds another JSON type.public String getInputForm()
inputForm. The input form of a name segment. Registry group
'nameSegmentInputForms' (Section 6.3). Null when absent; throws IllegalStateException when
the member holds another JSON type.public String getQuoteState()
quoteState. The quote state of a SQL_LEXICAL name segment. Registry group
'quoteStates' (Section 6.3). Null when absent; throws IllegalStateException when the member
holds another JSON type.public String getProvenance()
provenance. Where the text of a NAMED segment came from. Registry group
'segmentProvenance' (Sections 6.3 and 9.1). Null when absent; throws IllegalStateException
when the member holds another JSON type.public String getCanonicalKey()
canonicalKey. The canonical segment key minted by CanonicalSegmentKeyV1
(identifier-rules/FORMAT.md, Section 9) from the dialect rule set of the dependency snapshot,
the object type of registry/qualification-profiles.json (segmentObjectTypes), text, inputForm
and quoteState. EndpointIdV1 frames it; recomputed at the identity stage. Absent for
AUTHORITY and LOCATION segments, whose text is used byte for byte. Null when absent; throws
IllegalStateException when the member holds another JSON type.public String getKeyUnavailable()
keyUnavailable. Why no canonical key can be minted; excludes canonicalKey.
Why a canonical segment key cannot be minted. Registry group 'keyUnavailableReasons'
(Sections 6.3 and 10.6). Null when absent; throws IllegalStateException when the member holds
another JSON type.