com.atlassian.bamboo.migration
Interface BambooStAXRootMapper

All Known Implementing Classes:
AbstractProjectDependencyMapper, AbstractProjectMapper, AclMapper, ArtifactDefinitionMapper, ArtifactLinkMapper, ArtifactSubscriptionMapper, AuditLogMapper, AuthorMapper, BandanaItemMapper, BuildNumberMapper, CommitRootMapper, ConsumedSubscriptionMapper, ElasticImageConfigurationMapper, ElasticInstanceScheduleMapper, GroupMapper, InstantMessagingServerMapper, LabelMapper, LegacyJiraServerMapper, LegacyProjectDependencyMapper, LinkedJiraIssueRootMapper, LoginInformationMapper, MailServerMapper, PipelineMapper, PlanVcsRevisionHistoryMapper, ProjectBuildMapper, ProjectChainMapper, ProjectDependencyMapper, ProjectMapper, ServerIDMapper, SharedCapabilityMapper, TestCaseMapper, TestCaseResultErrorMapper, TestCaseResultMapper, TestClassMapper, TestClassResultMapper, TrustedApplicationsMapper, UserMapper, VariableDefinitionMapper, VariableSubstitutionMapper

public interface BambooStAXRootMapper

Base interface for StAX based export-import root level mappers


Method Summary
 void exportData(org.codehaus.staxmate.out.SMOutputElement outputElement)
          Perform data export
 java.lang.String getXmlRootNodeName()
          Returns local name of the XML parent node handled by this mapper
 void importData(org.codehaus.staxmate.in.SMInputCursor inputCursor)
          Perform data import
 

Method Detail

getXmlRootNodeName

@NotNull
java.lang.String getXmlRootNodeName()
Returns local name of the XML parent node handled by this mapper

Returns:
local name of the XML parent node

exportData

void exportData(@NotNull
                org.codehaus.staxmate.out.SMOutputElement outputElement)
                throws java.lang.Exception
Perform data export

Parameters:
outputElement - parent node for mapper's root node, usually root element of the XML file
Throws:
java.lang.Exception - when something went wrong

importData

void importData(@NotNull
                org.codehaus.staxmate.in.SMInputCursor inputCursor)
                throws java.lang.Exception
Perform data import

Parameters:
inputCursor - mapper's root node, usually child of root element of the XML file
Throws:
java.lang.Exception - when something went wrong


Copyright © 2011 Atlassian. All Rights Reserved.