public final class CloningVisitor extends Object implements SchemaVisitor<Schema>
Modifier and Type | Class and Description |
---|---|
static interface |
CloningVisitor.PropertyCopier |
Constructor and Description |
---|
CloningVisitor(CloningVisitor.PropertyCopier copyProperties,
boolean copyDocs,
Schema root) |
CloningVisitor(Schema root)
copy only serialization necessary fields.
|
Modifier and Type | Method and Description |
---|---|
SchemaVisitorAction |
afterVisitNonTerminal(Schema nt)
Invoked for schemas with children after its children have been visited.
|
Schema |
get()
Invoked when visiting is complete.
|
String |
toString() |
SchemaVisitorAction |
visitNonTerminal(Schema nt)
Invoked for schema with children before proceeding to visit the children.
|
SchemaVisitorAction |
visitTerminal(Schema terminal)
Invoked for schemas that do not have "child" schemas (like string, int ...)
or for a previously encountered schema with children, which will be treated
as a terminal.
|
public CloningVisitor(Schema root)
root
- public CloningVisitor(CloningVisitor.PropertyCopier copyProperties, boolean copyDocs, Schema root)
public SchemaVisitorAction visitTerminal(Schema terminal)
SchemaVisitor
visitTerminal
in interface SchemaVisitor<Schema>
public SchemaVisitorAction visitNonTerminal(Schema nt)
SchemaVisitor
visitNonTerminal
in interface SchemaVisitor<Schema>
public SchemaVisitorAction afterVisitNonTerminal(Schema nt)
SchemaVisitor
afterVisitNonTerminal
in interface SchemaVisitor<Schema>
public Schema get()
SchemaVisitor
get
in interface SchemaVisitor<Schema>
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.