com.atlassian.bamboo.migration.stream
Class CapabilitySetMapper

java.lang.Object
  extended by com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl<T>
      extended by com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl<Capability>
          extended by com.atlassian.bamboo.migration.stream.CapabilitySetMapper
All Implemented Interfaces:
BambooStAXMappingHelper<Capability>
Direct Known Subclasses:
LocalCapabilitySetMapper, RemoteCapabilitySetMapper

public class CapabilitySetMapper
extends BambooStAXMappingListHelperAbstractImpl<Capability>


Constructor Summary
protected CapabilitySetMapper(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
protected  Capability createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
          Creates empty instance of the imported object
 void exportListXml(net.sf.hibernate.Session session, org.codehaus.staxmate.out.SMOutputElement outputElement, java.lang.Iterable<Capability> list)
          Exports a collection to the XML.
 java.lang.String getXmlElementNodeName()
           
 java.lang.String getXmlRootNodeName()
          Returns local name of the XML parent node that will contain exported/imported object's properties
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl
afterImportListItem, beforeImportListItem, createListRootElement, createRootElement, eventEndElementOfListItemSaveObject, exportListXml, importListXml, importListXml, setListImportStrategy
 
Methods inherited from class com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl
commitClearSession, commitSession, exportProperties, exportXml, exportXml, getSession, getSessionFactory, importProperties, importXml, importXml, saveBambooObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.migration.BambooStAXMappingHelper
exportXml, importXml
 

Constructor Detail

CapabilitySetMapper

protected CapabilitySetMapper(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail

getXmlRootNodeName

@NotNull
public java.lang.String getXmlRootNodeName()
Description copied from interface: BambooStAXMappingHelper
Returns local name of the XML parent node that will contain exported/imported object's properties

Returns:
local name of the XML parent node

getXmlElementNodeName

@NotNull
public java.lang.String getXmlElementNodeName()

createItemInstance

@NotNull
protected Capability createItemInstance(org.codehaus.staxmate.in.SMInputCursor inputCursor)
                                 throws java.lang.Exception
Description copied from class: BambooStAXMappingHelperAbstractImpl
Creates empty instance of the imported object

Specified by:
createItemInstance in class BambooStAXMappingHelperAbstractImpl<Capability>
Parameters:
inputCursor - input cursor that points to the parent node containing object properties
Returns:
empty instance of the imported object
Throws:
javax.xml.stream.XMLStreamException - when something went wrong
java.lang.Exception

exportListXml

public void exportListXml(@NotNull
                          net.sf.hibernate.Session session,
                          @NotNull
                          org.codehaus.staxmate.out.SMOutputElement outputElement,
                          @NotNull
                          java.lang.Iterable<Capability> list)
                   throws java.lang.Exception
Description copied from class: BambooStAXMappingListHelperAbstractImpl
Exports a collection to the XML. If collection is empty collection root not will not be created.

Overrides:
exportListXml in class BambooStAXMappingListHelperAbstractImpl<Capability>
Parameters:
session - Hibernate session object
outputElement - parent node for collection root node
list - collection to be exported
Throws:
java.lang.Exception - when something went wrong


Copyright © 2010 Atlassian. All Rights Reserved.