|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.persister.xstream.XStreamManager
public class XStreamManager
Common XStream persistence behaviour
Field Summary | |
---|---|
protected com.thoughtworks.xstream.XStream |
myXstream
|
Constructor Summary | |
---|---|
XStreamManager()
Initialise with all the Bamboo xml aliases - to make the XML easier to read and improve the refactoring... |
Method Summary | |
---|---|
java.lang.Object |
fromXML(java.lang.String xml)
Convert the xml into a java Object instance |
com.thoughtworks.xstream.converters.Converter |
getDefaultConverter()
|
protected void |
init()
|
void |
registerClassAlias(java.lang.String xmlTag,
java.lang.Class tagClass)
Register an the given xmlTag as an alias for persisting the given tagClass. |
void |
registerConverter(com.thoughtworks.xstream.converters.Converter converter)
|
java.lang.String |
toXML(java.lang.Object object)
Convert the java object into its XML form |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.thoughtworks.xstream.XStream myXstream
Constructor Detail |
---|
public XStreamManager()
Method Detail |
---|
protected void init()
public void registerClassAlias(java.lang.String xmlTag, java.lang.Class tagClass)
xmlTag
- The xml tag nametagClass
- The class represented by the tagpublic com.thoughtworks.xstream.converters.Converter getDefaultConverter()
public void registerConverter(com.thoughtworks.xstream.converters.Converter converter)
public java.lang.Object fromXML(java.lang.String xml)
xml
- The xml representation of the object
public java.lang.String toXML(java.lang.Object object)
object
- The object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |