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

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

public class ProjectComponentParserImpl
extends java.lang.Object
implements ProjectComponentParser

Since:
v3.13

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

Constructor Detail

ProjectComponentParserImpl

public ProjectComponentParserImpl()
Method Detail

parse

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

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.