java.lang.Object | |
↳ | org.apache.commons.betwixt.strategy.BadCharacterReplacingNMapper |
NameMapper
implementation that processes a name by replacing or stripping
illegal characters before passing result down the chain.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a replacing mapper which delegates to given mapper.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the character that should be used to replace bad characters
if null then bad characters will be deleted.
| |||||||||||
This implementation processes characters which are not allowed in xml
element names and then returns the result from the next link in the chain.
| |||||||||||
Sets the character that should be used to replace bad characters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.betwixt.strategy.NameMapper
|
Constructs a replacing mapper which delegates to given mapper.
chainedMapper | next link in processing chain, possibly null |
---|
Gets the character that should be used to replace bad characters if null then bad characters will be deleted.
This implementation processes characters which are not allowed in xml element names and then returns the result from the next link in the chain. This processing consists of deleting them if no replacement character has been set. Otherwise, the character will be replaced.
typeName | the string to convert |
---|
Sets the character that should be used to replace bad characters.
replacement | the Charcter to be used for replacement if not null. Otherwise, indicates that illegal characters should be deleted. |
---|