|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.imports.csv.CsvFieldNameValidator
public class CsvFieldNameValidator
This class represents a validator that is used for field name validatio for
CSV import data. This validator checks for presence of plus sign character
('+') which causes exception in webwork (see JRA-12887). This validator also
checks for open round and square brackets without corresponding closing
brackets. The errors are indicated via return set that contains
CsvFieldNameValidator.Error
objects
if any errors are found.
Nested Class Summary | |
---|---|
static class |
CsvFieldNameValidator.Error
Simple class for representing errors reported by this validator. |
Constructor Summary | |
---|---|
CsvFieldNameValidator()
|
Method Summary | |
---|---|
java.util.Set |
check(java.lang.String fieldName)
Runs the result of the check over the given field name. |
protected boolean |
containsMatchingBrackets(java.lang.String value)
Check the given string for matching number of opening and closing round or square brackets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvFieldNameValidator()
Method Detail |
---|
public java.util.Set check(java.lang.String fieldName)
CsvFieldNameValidator.Error
objects if any errors found.
fieldName
- field name
CsvFieldNameValidator.Error
objects, never nullprotected boolean containsMatchingBrackets(java.lang.String value)
value
- string to check, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |