|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.imports.project.parser.OSPropertyParser
public abstract class OSPropertyParser
Contains some useful methods and constants for Parsers that read OS Properties.
| 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 |
boolean |
isOSPropertyString(String elementName)
Returns true |
boolean |
parseNumberAsBoolean(String numericValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OSPROPERTY_STRING
public static final String OSPROPERTY_NUMBER
public static final String OSPROPERTY_ENTRY
| Constructor Detail |
|---|
public OSPropertyParser()
| Method Detail |
|---|
public String getID(Map attributes)
attributes - The Map of attributes for this entry.
public String getEntityName(Map attributes)
attributes - The Map of attributes for this entry.
public String getPropertyKey(Map attributes)
attributes - The Map of attributes for this entry.
public String getValue(Map attributes)
attributes - The Map of attributes for this entry.
public boolean isOSPropertyEntry(String elementName)
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)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||