com.atlassian.jira.upgrade.tasks.jql
Class AbstractSimpleClauseXmlHandler

java.lang.Object
  extended by com.atlassian.jira.upgrade.tasks.jql.AbstractSimpleClauseXmlHandler
All Implemented Interfaces:
ClauseXmlHandler
Direct Known Subclasses:
AffectedVersionClauseXmlHandler, ComponentClauseXmlHandler, ConstantsClauseXmlHandler, FixForVersionClauseXmlHandler, MultiValueParameterClauseXmlHandler, ProjectClauseXmlHandler, TextSystemFieldClauseXmlHandler

public abstract class AbstractSimpleClauseXmlHandler
extends Object
implements ClauseXmlHandler

A base class that can iterate through a block of XML with value blocks inside and produce a Clause from it.

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.tasks.jql.ClauseXmlHandler
ClauseXmlHandler.BestGuessConversionResult, ClauseXmlHandler.ConversionResult, ClauseXmlHandler.ConversionResultType, ClauseXmlHandler.FailedConversionNoValuesResult, ClauseXmlHandler.FailedConversionResult, ClauseXmlHandler.FullConversionResult, ClauseXmlHandler.NoOpConversionResult
 
Constructor Summary
protected AbstractSimpleClauseXmlHandler(FieldFlagOperandRegistry fieldFlagOperandRegistry)
           
 
Method Summary
 ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el)
          Produce a clause from the legacy, SearchParameter, XML storage format.
protected  ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el, String xmlFieldId)
           
 boolean isSafeToNamifyValue()
          Some search parameters have values which when running through "namification" could lose precision or change the original meaning of the value.
protected abstract  boolean xmlFieldIdSupported(String xmlFieldId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleClauseXmlHandler

protected AbstractSimpleClauseXmlHandler(FieldFlagOperandRegistry fieldFlagOperandRegistry)
Method Detail

convertXmlToClause

public ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el)
Description copied from interface: ClauseXmlHandler
Produce a clause from the legacy, SearchParameter, XML storage format.

Specified by:
convertXmlToClause in interface ClauseXmlHandler
Parameters:
el - XML element
Returns:
a Clause that corresponds to the search that is described by the XML, must not be null.

convertXmlToClause

protected ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el,
                                                               String xmlFieldId)

isSafeToNamifyValue

public boolean isSafeToNamifyValue()
Description copied from interface: ClauseXmlHandler
Some search parameters have values which when running through "namification" could lose precision or change the original meaning of the value. This flag indicates whether it is safe for the upgrade task to namify the values.

Specified by:
isSafeToNamifyValue in interface ClauseXmlHandler
Returns:
true if is safe to namify values produced by this handler; false otherwise.

xmlFieldIdSupported

protected abstract boolean xmlFieldIdSupported(String xmlFieldId)


Copyright © 2002-2012 Atlassian. All Rights Reserved.