com.atlassian.plugin.web.descriptors
Class ConditionElementParser

java.lang.Object
  extended by com.atlassian.plugin.web.descriptors.ConditionElementParser

public class ConditionElementParser
extends Object

This class contains the logic for constructing Condition objects from a module descriptor's XML element. Its functionality is used by both AbstractWebFragmentModuleDescriptor and DefaultWebPanelModuleDescriptor.

Since:
2.5.0

Nested Class Summary
static class ConditionElementParser.CompositeType
           
static interface ConditionElementParser.ConditionFactory
          Creates a condition.
 
Constructor Summary
ConditionElementParser(ConditionElementParser.ConditionFactory conditionFactory)
           
 
Method Summary
 Condition makeCondition(Plugin plugin, org.dom4j.Element element)
           
 Condition makeConditions(Plugin plugin, org.dom4j.Element element, int type)
          Create a condition for when this web fragment should be displayed.
 Condition makeConditions(Plugin plugin, List<org.dom4j.Element> elements, int type)
           
 
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(Plugin plugin,
                                org.dom4j.Element element,
                                int type)
                         throws PluginParseException
Create a condition for when this web fragment should be displayed.

Parameters:
element - Element of web-section, web-item, or web-panel.
type - logical operator type
Throws:
PluginParseException

makeConditions

public Condition makeConditions(Plugin plugin,
                                List<org.dom4j.Element> elements,
                                int type)
                         throws PluginParseException
Throws:
PluginParseException

makeCondition

public Condition makeCondition(Plugin plugin,
                               org.dom4j.Element element)
                        throws PluginParseException
Throws:
PluginParseException


Copyright © 2013 Atlassian. All Rights Reserved.