-
- All Implemented Interfaces:
-
io.github.asperan.mimeinfo.context.Context
public final class MimeTreeMagicContext implements Context<TreeMagic>
The context for TreeMagic elements.
-
-
Constructor Summary
Constructors Constructor Description MimeTreeMagicContext()
-
Method Summary
Modifier and Type Method Description final UBytegetPriority()Set the priority of the TreeMagic. final UnitsetPriority(UByte priority)final Unittreematch(String path, Function1<MimeTreeMatchContext, Unit> configuration)Add a treematch child. TreeMagicbuild()Build the object of the context. -
-
Method Detail
-
getPriority
final UByte getPriority()
Set the priority of the TreeMagic.
-
setPriority
final Unit setPriority(UByte priority)
-
treematch
final Unit treematch(String path, Function1<MimeTreeMatchContext, Unit> configuration)
Add a treematch child.
- Parameters:
path- The path of the child.configuration- The configuration of the child.
-
build
TreeMagic build()
Build the object of the context.
-
-
-
-