public abstract class

OSPropertyParser

extends Object
java.lang.Object
   ↳ com.atlassian.jira.imports.project.parser.OSPropertyParser
Known Direct Subclasses

Class Overview

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

Summary

Constants
String OSPROPERTY_ENTRY
String OSPROPERTY_NUMBER
String OSPROPERTY_STRING
Public Constructors
OSPropertyParser()
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String OSPROPERTY_ENTRY

Constant Value: "OSPropertyEntry"

public static final String OSPROPERTY_NUMBER

Constant Value: "OSPropertyNumber"

public static final String OSPROPERTY_STRING

Constant Value: "OSPropertyString"

Public Constructors

public OSPropertyParser ()

Public Methods

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.

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.

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.

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.

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.

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.

public boolean parseNumberAsBoolean (String numericValue)