public static <N> DocumentRoot<N> DocumentRoot(
          final NamespaceBindings bindings,
          final TopLevelDocuments<N> documents) {
    return new DocumentRoot.Impl<>(bindings.getBindings(), documents.getDocuments());
  }
public static <N> DocumentRoot<N> DocumentRoot(
          final NamespaceBindings bindings,
          final TopLevelDocuments<N> documents) {
    return new DocumentRoot.Impl<>(bindings.getBindings(), documents.getDocuments());
  }
public static < N > DocumentRoot < N > DocumentRoot ( final NamespaceBindings bindings , final TopLevelDocuments < N > documents ) { return new DocumentRoot . Impl <> ( bindings . getBindings ( ) , documents . getDocuments ( ) ) ; }
Factory for {@link DocumentRoot}.

<p>
This builds a new DocumentRoot instance using the supplied data.
</p>

@param bindings    the namespace bindings
@param documents   the top-level documents
@param <N>         the property name type
@return  a new DocumentRoot instance
Factory for { @link DocumentRoot } .