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

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.OSPropertyParser
Direct Known Subclasses:
ProjectParserImpl, SystemInfoPopulator

public abstract class OSPropertyParser
extends Object

Contains some useful methods and constants for Parsers that read OS Properties.

Since:
v3.13

Field Summary
static String OSPROPERTY_ENTRY
           
static String OSPROPERTY_NUMBER
           
static String OSPROPERTY_STRING
           
 
Constructor Summary
OSPropertyParser()
           
 
Method Summary
 String getEntityName(Map attributes)
          Returns the "entityName" property from a Map of attributes for an OSProperty entry in a JIRA import file.
 String getID(Map attributes)
          Returns the "id" property from a Map of attributes for an OSProperty entry in a JIRA import file.
 String getPropertyKey(Map attributes)
          Returns the "propertyKey" property from a Map of attributes for an OSProperty entry in a JIRA import file.
 String getValue(Map attributes)
          Returns the "value" property from a Map of attributes for an OSProperty entry in a JIRA import file.
 boolean isOSPropertyEntry(String elementName)
          Returns true if the given element name is the "OSPropertyEntry" element.
 boolean isOSPropertyString(String elementName)
          Returns true if the given element name is the "OSPropertyString" element.
 boolean parseNumberAsBoolean(String numericValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OSPROPERTY_STRING

public static final String OSPROPERTY_STRING
See Also:
Constant Field Values

OSPROPERTY_NUMBER

public static final String OSPROPERTY_NUMBER
See Also:
Constant Field Values

OSPROPERTY_ENTRY

public static final String OSPROPERTY_ENTRY
See Also:
Constant Field Values
Constructor Detail

OSPropertyParser

public OSPropertyParser()
Method Detail

getID

public String getID(Map attributes)
Returns the "id" property from a Map of attributes for an OSProperty entry in a JIRA import file.

Parameters:
attributes - The Map of attributes for this entry.
Returns:
the "id" property from a Map of attributes for an OSProperty entry in a JIRA import file.

getEntityName

public String getEntityName(Map attributes)
Returns the "entityName" property from a Map of attributes for an OSProperty entry in a JIRA import file.

Parameters:
attributes - The Map of attributes for this entry.
Returns:
the "entityName" property from a Map of attributes for an OSProperty entry in a JIRA import file.

getPropertyKey

public String getPropertyKey(Map attributes)
Returns the "propertyKey" property from a Map of attributes for an OSProperty entry in a JIRA import file.

Parameters:
attributes - The Map of attributes for this entry.
Returns:
the "propertyKey" property from a Map of attributes for an OSProperty entry in a JIRA import file.

getValue

public String getValue(Map attributes)
Returns the "value" property from a Map of attributes for an OSProperty entry in a JIRA import file.

Parameters:
attributes - The Map of attributes for this entry.
Returns:
the "value" property from a Map of attributes for an OSProperty entry in a JIRA import file.

isOSPropertyEntry

public boolean isOSPropertyEntry(String elementName)
Returns true if the given element name is the "OSPropertyEntry" element.

Parameters:
elementName - The name of the XML element.
Returns:
true if the given element name is the "OSPropertyEntry" element.

isOSPropertyString

public boolean isOSPropertyString(String elementName)
Returns true if the given element name is the "OSPropertyString" element.

Parameters:
elementName - The name of the XML element.
Returns:
true if the given element name is the "OSPropertyString" element.

parseNumberAsBoolean

public boolean parseNumberAsBoolean(String numericValue)


Copyright © 2002-2014 Atlassian. All Rights Reserved.