com.atlassian.bamboo.persister.xstream
Class AbstractXStreamPersister
java.lang.Object
com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister
- Direct Known Subclasses:
- DeepCopier, VersionFiveToVersionSixUpgrader.V5AdministrationConfigurationPersister, VersionThreeToVersionFourUpgrader, XStreamAdminConfigPersister, XStreamBuildPersister
public class AbstractXStreamPersister
- extends Object
Common XStream persistence behaviour
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myXstream
protected XStream myXstream
builderManager
protected final BuilderManager builderManager
AbstractXStreamPersister
public AbstractXStreamPersister(BuilderManager builderManager)
- Initialise with all the Bamboo xml aliases - to make the XML easier to read and improve the refactoring...
- Parameters:
builderManager
-
init
protected void init()
registerClassAlias
public void registerClassAlias(String xmlTag,
Class tagClass)
- Register an the given xmlTag as an alias for persisting the given tagClass.
- Parameters:
xmlTag
- The xml tag nametagClass
- The class represented by the tag
fromXML
public Object fromXML(String xml)
- Convert the xml into a java Object instance
- Parameters:
xml
- The xml representation of the object
- Returns:
- The object
toXML
public String toXML(Object object)
- Convert the java object into its XML form
- Parameters:
object
- The object
- Returns:
- XML representation of the object
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.