com.atlassian.jira.web.action.admin.customfields
Interface CustomFieldValidator

All Known Implementing Classes:
CustomFieldValidatorImpl

public interface CustomFieldValidator


Method Summary
 boolean isValidType(String fieldType)
          Check that the given CustomFieldType is valid.
 ErrorCollection validateDetails(String fieldName, String fieldType, String searcher)
           
 ErrorCollection validateType(String fieldType)
          Check that the given CustomFieldType is valid.
 

Method Detail

validateType

ErrorCollection validateType(String fieldType)
Check that the given CustomFieldType is valid.

Parameters:
fieldType - the FieldType
Returns:
An ErrorCollection containing any validation errors.

isValidType

boolean isValidType(String fieldType)
Check that the given CustomFieldType is valid. This does the same logical checks as validateType(String), but returns a boolean instead of ErrorCollection.

Parameters:
fieldType - the FieldType
Returns:
true if the field type is not-null and valid.

validateDetails

ErrorCollection validateDetails(String fieldName,
                                String fieldType,
                                String searcher)


Copyright © 2002-2012 Atlassian. All Rights Reserved.