|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
public class XmlFriendlyReplacer
Allows replacement of Strings in XML-friendly drivers. The default replacements are:
Constructor Summary | |
---|---|
XmlFriendlyReplacer()
Default constructor. |
|
XmlFriendlyReplacer(String dollarReplacement,
String underscoreReplacement)
Creates an XmlFriendlyReplacer with custom replacements |
Method Summary | |
---|---|
String |
escapeName(String name)
Escapes name substituting '$' and '_' with replacement strings |
String |
unescapeName(String name)
Unescapes name re-enstating '$' and '_' when replacement strings are found |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlFriendlyReplacer()
public XmlFriendlyReplacer(String dollarReplacement, String underscoreReplacement)
dollarReplacement
- the replacement for '$'underscoreReplacement
- the replacement for '_'Method Detail |
---|
public String escapeName(String name)
name
- the name of attribute or node
public String unescapeName(String name)
name
- the name of attribute or node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |