ConfigUtil
Public / Methods
ExpectedType
2 overloads
Fetches and removes the expected type from the given context.
Stores the expected type in the given context.
NameCutLast
Removes the last part of a qualified name.
'Some.Name.With.Parts'
=> 'Some.Name.With'
'NoParts'
=> null
null
=> null
NameGetLast
Returns the last part of a qualified name.
'Some.Name.With.Parts'
=> 'Parts'
'NoParts'
=> 'NoParts'
null
=> null
Resolver
2 overloads
Returns the resolver directory from the given context.
Optional directory to use for resolving relative path values that start with a '.'
(e.g. <./a/b.txt>
). All other relative paths (e.g. <a/b.txt>
) will remain unchanged.
Stores the resolver directory in the given context.
Optional directory to use for resolving relative path values that start with a '.'
(e.g. <./a/b.txt>
). All other relative paths (e.g. <a/b.txt>
) will remain unchanged.
Scope
2 overloads
Returns the config scope from the given context.
Stores a config scope in the given context.
Script
2 overloads
Returns the config script from the given context.
Stores a config script in the given context.
WriteNode
Writes the given node, using the given expected type.
- IOException
-
If an I/O error has occurred while writing to writer in.
WriteType
Conditionally writes the name of the given type.
Depending on type in and expected in, either the full name or the short name is written. In either case, true
is returned. If type in and expected in are equal, no type name is written and the method returns false
.
- IOException
-
If an I/O error has occurred while writing to writer in.