Class ForestSpec.Builder
Object
Builder
- Enclosing class:
- ForestSpec
A builder for forest spec. Has setters for all forest spec properties.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(ForestSpec spec) Creates a builder and copies all parameters from the given spec. -
Method Summary
Modifier and TypeMethodDescriptionaddTransformation(ForestSpec.Transformation transformation) addTransformation(String module, Map<String, Object> params) build()setClipboardSessionId(String clipboardSessionId) setSecured(boolean secured) setSkeleton(boolean skeleton) setSQuery(ForestSpec.SQuery sQuery) setStructureId(Long structureId) setTitle(boolean title) setTransformations(List<ForestSpec.Transformation> transformations) setUserKey(String userKey) setVersion(Integer version)
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates a builder and copies all parameters from the given spec.
-
-
Method Details
-
setStructureId
-
setVersion
-
setSQuery
-
setSQuery
-
setClipboardSessionId
-
setUserKey
-
setCurrentUserKey
-
setTransformations
@NotNull public ForestSpec.Builder setTransformations(@Nullable List<ForestSpec.Transformation> transformations) -
addTransformation
@NotNull public ForestSpec.Builder addTransformation(@NotNull ForestSpec.Transformation transformation) -
addTransformation
@NotNull public ForestSpec.Builder addTransformation(@NotNull String module, @Nullable Map<String, Object> params) -
setSecured
-
setSkeleton
-
setTitle
-
build
-