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

All Known Implementing Classes:
StringConverterImpl

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
 java.lang.String getObject(java.lang.String stringValue)
          This method is a no-op, but I guess it was included for consistency with other Converters.
 java.lang.String getString(java.lang.String value)
          Just turns null into an empty string.
 

Method Detail

getString

java.lang.String getString(java.lang.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

java.lang.String getObject(java.lang.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-2010 Atlassian. All Rights Reserved.