Class SchemaCustom.ExtensionBuilderVisitor

java.lang.Object
org.jibx.schema.SchemaVisitor
org.jibx.schema.codegen.custom.SchemaCustom.ExtensionBuilderVisitor
Enclosing class:
SchemaCustom

private static class SchemaCustom.ExtensionBuilderVisitor extends SchemaVisitor
Visitor to build basic extensions for schema components. This also sets class and base names for the extensions, if the component has a name.
  • Field Details

    • m_root

      private GlobalExtension m_root
      Extension for root component being expanded.
  • Constructor Details

    • ExtensionBuilderVisitor

      private ExtensionBuilderVisitor()
  • Method Details

    • setRoot

      public void setRoot(GlobalExtension root)
      Set the extension for the root of the schema definition component to be expanded.
      Parameters:
      root -
    • visit

      public boolean visit(AnnotatedBase node)
      Visit any component of schema definition. This just creates the extension for the component.
      Overrides:
      visit in class SchemaVisitor
      Parameters:
      node -
      Returns:
      true to continue expansion