com.atlassian.jira.imports.project.parser
Class ProjectVersionParserImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.ProjectVersionParserImpl
All Implemented Interfaces:
ProjectVersionParser

public class ProjectVersionParserImpl
extends java.lang.Object
implements ProjectVersionParser

Since:
v3.13

Field Summary
 
Fields inherited from interface com.atlassian.jira.imports.project.parser.ProjectVersionParser
VERSION_ENTITY_NAME
 
Constructor Summary
ProjectVersionParserImpl()
           
 
Method Summary
 ExternalVersion parse(java.util.Map attributes)
          Transforms a set of attributes into an ExternalVersion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectVersionParserImpl

public ProjectVersionParserImpl()
Method Detail

parse

public ExternalVersion parse(java.util.Map attributes)
                      throws ParseException
Description copied from interface: ProjectVersionParser
Transforms a set of attributes into an ExternalVersion.

Specified by:
parse in interface ProjectVersionParser
Parameters:
attributes - is a map of key value pairs that represent the attributes of an ExternalVersion. The following attributes are required, otherwise a ParseException will be thrown:
  • id (required)
  • project (required)
  • name (required)
  • sequence (optional)
Returns:
an ExternalVersion the attributes contain id and key.
Throws:
ParseException - If the attributes are invalid.


Copyright © 2002-2010 Atlassian. All Rights Reserved.