Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Nested Class Summary
`static class` | `AbstractXStreamPersister.AntBuilderMap`
`static class` | `AbstractXStreamPersister.MavenBuilderMap`
`static class` | `AbstractXStreamPersister.ScriptBuilderMap`

Field Summary
`protected BuilderManager` | `builderManager`
`protected XStream` | `myXstream`

Constructor Summary
`AbstractXStreamPersister(BuilderManager builderManager)` Initialise with all the Bamboo xml aliases - to make the XML easier to read and improve the refactoring...

Method Summary
`Object` | `fromXML(String xml)` Convert the xml into a java Object instance
`protected void` | `init()`
`void` | `registerClassAlias(String xmlTag, Class tagClass)` Register an the given xmlTag as an alias for persisting the given tagClass.
`String` | `toXML(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

### myXstream

    protected XStream myXstream

### builderManager

    protected final BuilderManager builderManager

Constructor Detail

### 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` -

Method Detail

### 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 name
    `tagClass` - 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.