| Modifier and Type | Method and Description |
|---|---|
TreeNode.Builder |
addChild(TreeNode.Builder nodeBuilder)
Adds a new child
TreeNode by providing a TreeNode.Builder that will generate it |
TreeNode |
build()
Returns the created
TreeNode. |
static TreeNode.Builder |
forDirectory(FileAttributes attributes)
Obtains a new
TreeNode.Builder instance to be used to create a TreeNode which references a directory |
static TreeNode.Builder |
forFile(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> message)
Obtains a new
TreeNode.Builder instance to be used to create a TreeNode which references a file |
public static TreeNode.Builder forDirectory(FileAttributes attributes)
TreeNode.Builder instance to be used to create a TreeNode which references a directoryattributes - a FileAttributes object with the directory's metadataTreeNode.Builderpublic static TreeNode.Builder forFile(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> message)
TreeNode.Builder instance to be used to create a TreeNode which references a filemessage - a Message which payload is an InputStream with the file content and a FileAttributes
instance as attributesTreeNode.Builderpublic TreeNode.Builder addChild(TreeNode.Builder nodeBuilder)
TreeNode by providing a TreeNode.Builder that will generate itnodeBuilder - a TreeNode.Builder which will create the child nodethis instanceCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.