Class CodeGen.SchemaNameVisitor

java.lang.Object
org.jibx.schema.SchemaVisitor
org.jibx.schema.codegen.CodeGen.SchemaNameVisitor
Enclosing class:
CodeGen

private static class CodeGen.SchemaNameVisitor extends SchemaVisitor
Visitor for checking element namespace usage in schema definitions. This just accumulates the set of namespaces used by element definitions.
  • Field Details

    • m_uris

      private final Set m_uris
      Set of namespace URIs used by element definitions.
  • Constructor Details

    • SchemaNameVisitor

      public SchemaNameVisitor()
      Constructor.
  • Method Details

    • isSingleNamespace

      public boolean isSingleNamespace()
      Check if a single namespace is used for all element definitions.
      Returns:
      true if single namespace, false if not
    • isNoNamespaceUsed

      public boolean isNoNamespaceUsed()
      Check if the no-namespace namespace is used by one or more elements.
      Returns:
      true if no-namespace used, false if not
    • exit

      public void exit(ElementElement node)
      Accumulate namespace used by element definition.
      Overrides:
      exit in class SchemaVisitor
      Parameters:
      node -