class DocumentTreeBuilder extends AnyRef
API for a safe and concise way of constructing a DocumentTree
.
The hierarchy of the tree will be constructed based on the provided Path
instances
while also ensuring that document configuration is wired up correctly (inheriting
the configuration from directories).
- Alphabetic
- By Inheritance
- DocumentTreeBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addConfig(config: Config): DocumentTreeBuilder
Add the specified tree configuration to the builder.
Add the specified tree configuration to the builder. The path it will be assigned to will be taken from the
origin
property of theConfig
instance. Existing instances with identical paths will be overridden.For assigning a configuration to a specific document and not an entire tree or subtree, set the
config
property of aDocument
instance directly before adding it to the builder. -
def
addDocument(doc: Document): DocumentTreeBuilder
Add the specified document to the builder.
Add the specified document to the builder. Existing instances with identical paths will be overridden.
-
def
addDocuments(docs: List[Document]): DocumentTreeBuilder
Add the specified documents to the builder.
Add the specified documents to the builder. Existing instances with identical paths will be overridden.
-
def
addTemplate(doc: TemplateDocument): DocumentTreeBuilder
Add the specified template to the builder.
Add the specified template to the builder. Existing instances with identical paths will be overridden.
-
def
addTemplates(docs: List[TemplateDocument]): DocumentTreeBuilder
Add the specified templates to the builder.
Add the specified templates to the builder. Existing instances with identical paths will be overridden.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build(baseConfig: Config): DocumentTree
Builds a
DocumentTree
from the provided instances, using the specifiedConfig
instance as a base for the configuration of all trees and documents.Builds a
DocumentTree
from the provided instances, using the specifiedConfig
instance as a base for the configuration of all trees and documents. Also wires configuration of documents to that of parent trees for proper inheritance. -
def
build: DocumentTree
Builds a
DocumentTree
from the provided instances and wires the configuration of documents to that of parent trees for proper inheritance. -
def
buildRoot(baseConfig: Config): DocumentTreeRoot
Builds a
DocumentTreeRoot
from the provided instances, using the specifiedConfig
instance as a base for the configuration of all trees and documents.Builds a
DocumentTreeRoot
from the provided instances, using the specifiedConfig
instance as a base for the configuration of all trees and documents. Also wires configuration of documents to that of parent trees for proper inheritance. -
def
buildRoot: DocumentTreeRoot
Builds a
DocumentTreeRoot
from the provided instances and wires the configuration of documents to that of parent trees for proper inheritance. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated