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

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.OSPropertyParser
      extended by com.atlassian.jira.imports.project.parser.ProjectParserImpl
All Implemented Interfaces:
ProjectParser

public class ProjectParserImpl
extends OSPropertyParser
implements ProjectParser

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.imports.project.parser.OSPropertyParser
OSPROPERTY_ENTRY, OSPROPERTY_NUMBER, OSPROPERTY_STRING
 
Fields inherited from interface com.atlassian.jira.imports.project.parser.ProjectParser
PROJECT_ENTITY_NAME
 
Constructor Summary
ProjectParserImpl()
           
 
Method Summary
 void parseOther(String elementName, Map attributes)
          This method parses the Project "Email Sender" properties out of OSProperty.
 ExternalProject parseProject(Map attributes)
          Transforms a set of attributes into an ExternalProject.
 
Methods inherited from class com.atlassian.jira.imports.project.parser.OSPropertyParser
getEntityName, getID, getPropertyKey, getValue, isOSPropertyEntry, isOSPropertyString, parseNumberAsBoolean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectParserImpl

public ProjectParserImpl()
Method Detail

parseProject

public ExternalProject parseProject(Map attributes)
                             throws ParseException
Description copied from interface: ProjectParser
Transforms a set of attributes into an ExternalProject.

Specified by:
parseProject in interface ProjectParser
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

public void parseOther(String elementName,
                       Map attributes)
Description copied from interface: ProjectParser
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.

Specified by:
parseOther in interface ProjectParser
Parameters:
elementName - Element Name for this element.
attributes - Map of key-value pairs for this element.


Copyright © 2002-2009 Atlassian. All Rights Reserved.