public interface

ProjectComponentParser

com.atlassian.jira.imports.project.parser.ProjectComponentParser
Known Indirect Subclasses

Class Overview

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

Summary

Constants
String COMPONENT_ENTITY_NAME Name of the Component Entity
Public Methods
ExternalComponent parse(Map attributes)
Transforms a set of attributes into an ExternalComponent.

Constants

public static final String COMPONENT_ENTITY_NAME

Name of the Component Entity

Constant Value: "Component"

Public Methods

public ExternalComponent parse (Map attributes)

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.