com.atlassian.jira.issue.customfields.converters
Interface StringConverter

All Known Implementing Classes:
StringConverterImpl

@Internal
public interface StringConverter

Converts Strings for storage and retrieval of Custom Field values. This really doesn't do much at all because we already have Strings, but is included for consistency with the other Converters.


Method Summary
 String getObject(String stringValue)
          This method is a no-op, but I guess it was included for consistency with other Converters.
 String getString(String value)
          Just turns null into an empty string.
 

Method Detail

getString

String getString(String value)
Just turns null into an empty string.

Parameters:
value - The String value to check for null.
Returns:
Empty String if the passed value is null, else returns the original value.

getObject

String getObject(String stringValue)
This method is a no-op, but I guess it was included for consistency with other Converters.

Parameters:
stringValue - the stringValue to do absolutely nothing with, and just return as is.
Returns:
The exact same object that you gave me.


Copyright © 2002-2014 Atlassian. All Rights Reserved.