Class FileLanguage
Apache Camel's file language: \({file:name}</code>, <code>\){file:name.noext} and the other keys. One table of keys
and one resolver serve the expression engine and the components that substitute file keys in their own options
(moveTo, doneFileName and the like), so a key means the same thing in both.
The expression engine matches keys with , as Camel does; component options
match with , where ${FILE:NAME} has always worked.
public static class FileLanguage
Inheritance
Properties
Keys
The keys, in the order an error lists them, and the fact each one reads.
public static IReadOnlyList<KeyValuePair<string, FileFact>> Keys { get; }
Methods
FindUnknownKey(string, StringComparison)
The first key in pattern that is not one of , or null when every
public static string? FindUnknownKey(string pattern, StringComparison comparison)
Resolve(string, IFileFacts, StringComparison)
The value a key reads from facts.
public static object? Resolve(string key, IFileFacts facts, StringComparison comparison)
Substitute(string, IFileFacts, StringComparison)
Replaces every ${file:key} in pattern with the value it reads, written as a template
public static string Substitute(string pattern, IFileFacts facts, StringComparison comparison)
TryGetFact(string, StringComparison, out FileFact)
The fact a key reads; false when the key is not one of .
public static bool TryGetFact(string key, StringComparison comparison, out FileFact fact)
UnknownKeyMessage(string)
The words of the error for a key that is not one of .
public static string UnknownKeyMessage(string key)
Value(FileFact, IFileFacts)
The value of one fact: a string, a length or a .
public static object? Value(FileFact fact, IFileFacts facts)
WithoutDot(string?)
An extension as the file language gives it: without the leading dot (.xml is xml).
public static string? WithoutDot(string? extension)