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

All Known Implementing Classes:
ProjectParserImpl

public interface ProjectParser

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

Since:
v3.13

Field Summary
static java.lang.String PROJECT_ENTITY_NAME
          Defines the element name that the parser will handle.
 
Method Summary
 void parseOther(java.lang.String elementName, java.util.Map attributes)
          This method parses the Project "Email Sender" properties out of OSProperty.
 ExternalProject parseProject(java.util.Map attributes)
          Transforms a set of attributes into an ExternalProject.
 

Field Detail

PROJECT_ENTITY_NAME

static final java.lang.String PROJECT_ENTITY_NAME
Defines the element name that the parser will handle.

See Also:
Constant Field Values
Method Detail

parseProject

ExternalProject parseProject(java.util.Map attributes)
                             throws ParseException
Transforms a set of attributes into an ExternalProject.

Parameters:
attributes - is a map of key value pairs that represent the attributes of an ExternalProject. The following attributes are required, otherwise a ParseException will be thrown:
  • id (required)
  • key (required)
Returns:
an ExternalProject the attributes contain id and key, never null.
Throws:
ParseException - If the attributes are invalid.

parseOther

void parseOther(java.lang.String elementName,
                java.util.Map attributes)
This method parses the Project "Email Sender" properties out of OSProperty. The values are remembered and added to the appropriate ExternalProject during the parseProject() phase.

Parameters:
elementName - Element Name for this element.
attributes - Map of key-value pairs for this element.


Copyright © 2002-2010 Atlassian. All Rights Reserved.