public static class NodeStateCopier.Builder
extends java.lang.Object
includePaths
, excludePaths
and mergePaths
.
copy
methods, NodeStores or NodeStates can
be copied.Modifier and Type | Method and Description |
---|---|
boolean |
copy(@NotNull NodeState sourceRoot,
@NotNull NodeBuilder targetRoot)
Creates a NodeStateCopier to copy the
sourceRoot NodeState to the
targetRoot NodeBuilder, using any include, exclude and merge paths
set on this NodeStateCopier.Builder. |
boolean |
copy(@NotNull NodeStore source,
@NotNull NodeStore target)
Creates a NodeStateCopier to copy the
source NodeStore to the
target NodeStore, using any include, exclude and merge paths
set on this NodeStateCopier.Builder. |
@NotNull NodeStateCopier.Builder |
exclude(@NotNull java.util.Set<java.lang.String> paths)
Set exclude paths.
|
@NotNull NodeStateCopier.Builder |
exclude(java.lang.String... paths)
Convenience wrapper for
exclude(Set) . |
@NotNull NodeStateCopier.Builder |
excludeFragments(@NotNull java.util.Set<java.lang.String> fragments)
Set exclude fragments.
|
@NotNull NodeStateCopier.Builder |
excludeFragments(java.lang.String... fragments)
Convenience wrapper for
exclude(Set) . |
@NotNull NodeStateCopier.Builder |
include(@NotNull java.util.Set<java.lang.String> paths)
Set include paths.
|
@NotNull NodeStateCopier.Builder |
include(java.lang.String... paths)
Convenience wrapper for
include(Set) . |
@NotNull NodeStateCopier.Builder |
merge(@NotNull java.util.Set<java.lang.String> paths)
Set merge paths.
|
@NotNull NodeStateCopier.Builder |
merge(java.lang.String... paths)
Convenience wrapper for
merge(Set) . |
@NotNull NodeStateCopier.Builder |
supportFragment(@NotNull java.util.Set<java.lang.String> paths)
Set fragment paths.
|
@NotNull NodeStateCopier.Builder |
supportFragment(java.lang.String... paths)
Convenience wrapper for
supportFragment(Set) . |
@NotNull public @NotNull NodeStateCopier.Builder include(@NotNull @NotNull java.util.Set<java.lang.String> paths)
paths
- include pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder include(@NotNull java.lang.String... paths)
include(Set)
.paths
- include pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder exclude(@NotNull @NotNull java.util.Set<java.lang.String> paths)
paths
- exclude pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder exclude(@NotNull java.lang.String... paths)
exclude(Set)
.paths
- exclude pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder supportFragment(@NotNull @NotNull java.util.Set<java.lang.String> paths)
paths
- fragment pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder supportFragment(@NotNull java.lang.String... paths)
supportFragment(Set)
.paths
- fragment pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder excludeFragments(@NotNull @NotNull java.util.Set<java.lang.String> fragments)
fragments
- exclude fragmentsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder excludeFragments(@NotNull java.lang.String... fragments)
exclude(Set)
.fragments
- exclude fragmentsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder merge(@NotNull @NotNull java.util.Set<java.lang.String> paths)
paths
- merge pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
@NotNull public @NotNull NodeStateCopier.Builder merge(@NotNull java.lang.String... paths)
merge(Set)
.paths
- merge pathsNodeStateCopier.NodeStateCopier(Set, Set, Set, Set, Set)
public boolean copy(@NotNull @NotNull NodeState sourceRoot, @NotNull @NotNull NodeBuilder targetRoot)
sourceRoot
NodeState to the
targetRoot
NodeBuilder, using any include, exclude and merge paths
set on this NodeStateCopier.Builder.
NodeStore.merge(NodeBuilder, CommitHook, CommitInfo)
.sourceRoot
- NodeState to copy fromtargetRoot
- NodeBuilder to copy topublic boolean copy(@NotNull @NotNull NodeStore source, @NotNull @NotNull NodeStore target) throws CommitFailedException
source
NodeStore to the
target
NodeStore, using any include, exclude and merge paths
set on this NodeStateCopier.Builder.
NodeStore.merge(NodeBuilder, CommitHook, CommitInfo)
.source
- NodeStore to copy fromtarget
- NodeStore to copy toCommitFailedException
- if the copy operation failsCopyright © 2010 - 2020 Adobe. All Rights Reserved