public abstract static class SchemaZipFold.Context
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SchemaZipFold.Context |
EMPTY |
Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
static SchemaZipFold.Context |
create(java.util.List<java.lang.String> path,
java.util.Optional<Schema.TypeName> parent) |
abstract java.util.Optional<Schema.TypeName> |
parent()
Type of parent node in a tree.
|
abstract java.util.List<java.lang.String> |
path()
Field path from a root of a schema.
|
SchemaZipFold.Context |
withParent(Schema.TypeName parent) |
SchemaZipFold.Context |
withPathPart(java.lang.String part) |
public static final SchemaZipFold.Context EMPTY
public abstract java.util.List<java.lang.String> path()
public abstract java.util.Optional<Schema.TypeName> parent()
public SchemaZipFold.Context withPathPart(java.lang.String part)
public SchemaZipFold.Context withParent(Schema.TypeName parent)
public static SchemaZipFold.Context create(java.util.List<java.lang.String> path, java.util.Optional<Schema.TypeName> parent)