com.atlassian.jira.imports.project.parser
Interface ProjectComponentParser

All Known Implementing Classes:
ProjectComponentParserImpl

public interface ProjectComponentParser

Converts project component xml in a JIRA backup to an object representation.

Since:
v3.13

Field Summary
static String COMPONENT_ENTITY_NAME
          Name of the Component Entity
 
Method Summary
 ExternalComponent parse(Map attributes)
          Transforms a set of attributes into an ExternalComponent.
 

Field Detail

COMPONENT_ENTITY_NAME

static final String COMPONENT_ENTITY_NAME
Name of the Component Entity

See Also:
Constant Field Values
Method Detail

parse

ExternalComponent parse(Map attributes)
                        throws ParseException
Transforms a set of attributes into an ExternalComponent.

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-2012 Atlassian. All Rights Reserved.