|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.betwixt.strategy.BadCharacterReplacingNMapper
public class BadCharacterReplacingNMapper
NameMapper implementation that processes a name by replacing or stripping
illegal characters before passing result down the chain.
| Constructor Summary | |
|---|---|
BadCharacterReplacingNMapper(NameMapper chainedMapper)
Constructs a replacing mapper which delegates to given mapper. |
|
| Method Summary | |
|---|---|
java.lang.Character |
getReplacement()
Gets the character that should be used to replace bad characters if null then bad characters will be deleted. |
java.lang.String |
mapTypeToElementName(java.lang.String typeName)
This implementation processes characters which are not allowed in xml element names and then returns the result from the next link in the chain. |
void |
setReplacement(java.lang.Character replacement)
Sets the character that should be used to replace bad characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BadCharacterReplacingNMapper(NameMapper chainedMapper)
chainedMapper - next link in processing chain, possibly null| Method Detail |
|---|
public java.lang.Character getReplacement()
public void setReplacement(java.lang.Character replacement)
replacement - the Charcter to be used for replacement if not null.
Otherwise, indicates that illegal characters should be deleted.public java.lang.String mapTypeToElementName(java.lang.String typeName)
mapTypeToElementName in interface NameMappertypeName - the string to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||