com.atlassian.plugin.web.descriptors
Class ConditionElementParser

java.lang.Object
  extended by com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<Condition>
      extended by com.atlassian.plugin.web.descriptors.ConditionElementParser

public class ConditionElementParser
extends AbstractConditionElementParser<Condition>

Implementation of AbstractConditionElementParser for Condition Its functionality is used by both AbstractWebFragmentModuleDescriptor and DefaultWebPanelModuleDescriptor.

Since:
2.5.0

Nested Class Summary
static class ConditionElementParser.CompositeType
          Deprecated. use AbstractConditionElementParser.CompositeType
static interface ConditionElementParser.ConditionFactory
          Creates a condition.
 
Constructor Summary
ConditionElementParser(ConditionElementParser.ConditionFactory conditionFactory)
           
 
Method Summary
protected  CompositeCondition<Condition> createAndCompositeCondition()
           
protected  CompositeCondition<Condition> createOrCompositeCondition()
           
protected  Condition invert(Condition condition)
           
 Condition makeCondition(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
          Only here to retain binary compatibility.
protected  Condition makeConditionImplementation(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 Condition makeConditions(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element, int type)
          Only here to retain binary compatibility.
 Condition makeConditions(com.atlassian.plugin.Plugin plugin, List<org.dom4j.Element> elements, int type)
          Only here to retain binary compatibility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionElementParser

public ConditionElementParser(ConditionElementParser.ConditionFactory conditionFactory)
Method Detail

makeConditions

public Condition makeConditions(com.atlassian.plugin.Plugin plugin,
                                org.dom4j.Element element,
                                int type)
                         throws com.atlassian.plugin.PluginParseException
Only here to retain binary compatibility. See AbstractConditionElementParser.makeConditions(com.atlassian.plugin.Plugin, org.dom4j.Element, int)

Overrides:
makeConditions in class AbstractConditionElementParser<Condition>
element - Element of web-section, web-item, or web-panel.
type - logical operator type
Throws:
com.atlassian.plugin.PluginParseException

makeConditions

public Condition makeConditions(com.atlassian.plugin.Plugin plugin,
                                List<org.dom4j.Element> elements,
                                int type)
                         throws com.atlassian.plugin.PluginParseException
Only here to retain binary compatibility. See AbstractConditionElementParser.makeConditions(com.atlassian.plugin.Plugin, java.util.List, int)

Overrides:
makeConditions in class AbstractConditionElementParser<Condition>
Throws:
com.atlassian.plugin.PluginParseException

makeCondition

public Condition makeCondition(com.atlassian.plugin.Plugin plugin,
                               org.dom4j.Element element)
                        throws com.atlassian.plugin.PluginParseException
Only here to retain binary compatibility. See AbstractConditionElementParser.makeCondition(com.atlassian.plugin.Plugin, org.dom4j.Element)

Overrides:
makeCondition in class AbstractConditionElementParser<Condition>
Throws:
com.atlassian.plugin.PluginParseException

makeConditionImplementation

protected Condition makeConditionImplementation(com.atlassian.plugin.Plugin plugin,
                                                org.dom4j.Element element)
                                         throws com.atlassian.plugin.PluginParseException
Specified by:
makeConditionImplementation in class AbstractConditionElementParser<Condition>
Throws:
com.atlassian.plugin.PluginParseException

invert

protected Condition invert(Condition condition)
Specified by:
invert in class AbstractConditionElementParser<Condition>

createAndCompositeCondition

protected CompositeCondition<Condition> createAndCompositeCondition()
Specified by:
createAndCompositeCondition in class AbstractConditionElementParser<Condition>

createOrCompositeCondition

protected CompositeCondition<Condition> createOrCompositeCondition()
Specified by:
createOrCompositeCondition in class AbstractConditionElementParser<Condition>


Copyright © 2014 Atlassian. All rights reserved.