com.atlassian.jira.imports.project.populator
Class SystemInfoPopulator

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.OSPropertyParser
      extended by com.atlassian.jira.imports.project.populator.SystemInfoPopulator
All Implemented Interfaces:
BackupOverviewPopulator

public class SystemInfoPopulator
extends OSPropertyParser
implements BackupOverviewPopulator

This BackupOverviewPopulator reads System Info from OSProperty values and adds it to the BackupOverviewBuilder. Namely, it adds the Build Number and the Edition. Utilizes the fact that OSPropertyEntry will always be processed before OSPropertyString so that we can find the build number.

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.imports.project.parser.OSPropertyParser
OSPROPERTY_ENTRY, OSPROPERTY_NUMBER, OSPROPERTY_STRING
 
Constructor Summary
SystemInfoPopulator()
           
 
Method Summary
 void populate(BackupOverviewBuilder backupOverviewBuilder, String elementName, Map attributes)
          If the entity referred to in the given elementName is managed by this Populator, then it builds the appropriate object and adds it to the BackupOverviewBuilder.
 
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

SystemInfoPopulator

public SystemInfoPopulator()
Method Detail

populate

public void populate(BackupOverviewBuilder backupOverviewBuilder,
                     String elementName,
                     Map attributes)
              throws ParseException
Description copied from interface: BackupOverviewPopulator
If the entity referred to in the given elementName is managed by this Populator, then it builds the appropriate object and adds it to the BackupOverviewBuilder.

Specified by:
populate in interface BackupOverviewPopulator
Parameters:
backupOverviewBuilder - Collects overview information from the import file.
elementName - The name of the entity element in the backup XML.
attributes - The attributes from the backup XML for this entity.
Throws:
ParseException - If the attributes for this entity are invalid.


Copyright © 2002-2009 Atlassian. All Rights Reserved.