public class YamlReaderConfigurator extends Object implements ReaderConfigurator
YamlReader
configuration on a Smooks
instance.Constructor and Description |
---|
YamlReaderConfigurator() |
Modifier and Type | Method and Description |
---|---|
YamlReaderConfigurator |
setAliasAttributeName(String aliasAttributeName)
The name of the alias attribute when the aliasStrategy is REFER or REFER_RESOLVER.
|
YamlReaderConfigurator |
setAliasStrategy(AliasStrategy aliasStrategy)
The strategy how to handle YAML anchors and aliases.
|
YamlReaderConfigurator |
setAnchorAttributeName(String anchorAttributeName)
The name of the anchor attribute when the aliasStrategy is REFER or REFER_RESOLVER.
|
YamlReaderConfigurator |
setArrayElementName(String arrayElementName)
The element name of a array element.
|
YamlReaderConfigurator |
setDocumentName(String documentName)
The element name of the yaml document declaration.
|
YamlReaderConfigurator |
setIllegalElementNameCharReplacement(String illegalElementNameCharReplacement)
If illegal characters are encountered in a YAML element name then they
are replaced with this value.
|
YamlReaderConfigurator |
setIndent(boolean indent)
Add indentation character data to the generated event stream.
|
YamlReaderConfigurator |
setKeyMap(Map<String,String> keyMap)
Defines a YAML element name mapping.
|
YamlReaderConfigurator |
setKeyPrefixOnNumeric(String keyPrefixOnNumeric)
The prefix character to add if the YAML node name starts with a number.
|
YamlReaderConfigurator |
setKeyWhitspaceReplacement(String keyWhitspaceReplacement)
The replacement character for whitespaces in a YAML map key.
|
YamlReaderConfigurator |
setRootName(String rootName)
The element name of the document root.
|
YamlReaderConfigurator |
setTargetProfile(String targetProfile)
The profile on which this reader is used
|
List<SmooksResourceConfiguration> |
toConfig()
Creates the SmooksResourceConfiguration from the defined settings.
|
public YamlReaderConfigurator setRootName(String rootName)
rootName
- public YamlReaderConfigurator setDocumentName(String documentName)
documentName
- public YamlReaderConfigurator setArrayElementName(String arrayElementName)
arrayElementName
- public YamlReaderConfigurator setKeyWhitspaceReplacement(String keyWhitspaceReplacement)
keyWhitspaceReplacement
- public YamlReaderConfigurator setKeyPrefixOnNumeric(String keyPrefixOnNumeric)
keyPrefixOnNumeric
- public YamlReaderConfigurator setIllegalElementNameCharReplacement(String illegalElementNameCharReplacement)
illegalElementNameCharReplacement
- public YamlReaderConfigurator setKeyMap(Map<String,String> keyMap)
keyMap
- public YamlReaderConfigurator setTargetProfile(String targetProfile)
targetProfile
- public YamlReaderConfigurator setAliasStrategy(AliasStrategy aliasStrategy)
aliasStrategy
- The strategy to useAliasStrategy
public YamlReaderConfigurator setAnchorAttributeName(String anchorAttributeName)
anchorAttributeName
- public YamlReaderConfigurator setAliasAttributeName(String aliasAttributeName)
aliasAttributeName
- public YamlReaderConfigurator setIndent(boolean indent)
indent
- public List<SmooksResourceConfiguration> toConfig()
toConfig
in interface ReaderConfigurator
Copyright © 2020. All rights reserved.