public static interface CardFactory.Config
Modifier and Type | Method and Description |
---|---|
boolean |
allowHierarch()
Determines whether the HIERARCH keyword convention is permitted.
|
boolean |
allowTrim()
Determines whether overlength string values will be trimmed
to fits card constraints.
|
java.lang.String |
sanitiseText(java.lang.String txt)
This method is called on uncontrolled text inputs that will
end up as text or comment content in output cards.
|
boolean allowHierarch()
boolean allowTrim()
java.lang.String sanitiseText(java.lang.String txt)
FitsUtil.isFitsCharacter(int)
).
If the input text contains no illegal characters, it should be
returned unchanged. If it does contain illegal characters,
it should be adjusted in some way to remove them,
or a RuntimeException may be thrown.
Example implementations are provided in
sanitiseAsReplacement
and
sanitiseAsError
.
txt
- non-null free text stringjava.lang.IllegalArgumentException
- if this config is unable
or unwilling to sanitise