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

java.lang.Object
  extended by com.atlassian.jira.upgrade.tasks.jql.CascadeSelectParameterClauseXmlHandler
All Implemented Interfaces:
ClauseXmlHandler

public class CascadeSelectParameterClauseXmlHandler
extends java.lang.Object
implements ClauseXmlHandler

Generates a TerminalClause that represents a cascade select custom field. Cascade Select is split across two different com.atlassian.jira.issue.search.parameters.lucene.StringParameters. This XML handler first checks if the element is the parent option, and then walks the tree to find the child option if there is one. If the element is the child option, null is returned.

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
CascadeSelectParameterClauseXmlHandler(JqlSelectOptionsUtil jqlSelectOptionsUtil)
           
 
Method Summary
 ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el)
          Produce a clause from the legacy, SearchParameter, XML storage format.
 boolean isSafeToNamifyValue()
          Some search parameters have values which when running through "namification" could lose precision or change the original meaning of the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeSelectParameterClauseXmlHandler

public CascadeSelectParameterClauseXmlHandler(JqlSelectOptionsUtil jqlSelectOptionsUtil)
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.

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.


Copyright © 2002-2011 Atlassian. All Rights Reserved.