-
- All Implemented Interfaces:
-
io.github.asperan.mimeinfo.context.Context
public final class MimeTreeMatchContext implements Context<TreeMatch>
The context for TreeMatch elements.
-
-
Constructor Summary
Constructors Constructor Description MimeTreeMatchContext(String path)
-
Method Summary
Modifier and Type Method Description final TreeMatch.TypegetType()Set the type of the treematch. final UnitsetType(TreeMatch.Type type)final BooleangetMatchCase()Set whether the treematch should match the case. final UnitsetMatchCase(Boolean matchCase)final BooleanisExecutable()Set whether the treematch should check the executability of the path. final UnitsetExecutable(Boolean isExecutable)final BooleangetNonEmpty()Set whether the path should not be empty. final UnitsetNonEmpty(Boolean nonEmpty)final StringgetMimetype()Set what mimetype for the file. final UnitsetMimetype(String mimetype)TreeMatchbuild()Build the object of the context. -
-
Constructor Detail
-
MimeTreeMatchContext
MimeTreeMatchContext(String path)
-
-
Method Detail
-
getType
final TreeMatch.Type getType()
Set the type of the treematch.
-
getMatchCase
final Boolean getMatchCase()
Set whether the treematch should match the case.
-
setMatchCase
final Unit setMatchCase(Boolean matchCase)
-
isExecutable
final Boolean isExecutable()
Set whether the treematch should check the executability of the path.
-
setExecutable
final Unit setExecutable(Boolean isExecutable)
-
getNonEmpty
final Boolean getNonEmpty()
Set whether the path should not be empty.
-
setNonEmpty
final Unit setNonEmpty(Boolean nonEmpty)
-
getMimetype
final String getMimetype()
Set what mimetype for the file.
-
setMimetype
final Unit setMimetype(String mimetype)
-
build
TreeMatch build()
Build the object of the context.
-
-
-
-