public class

ConditionElementParser

extends Object
java.lang.Object
   ↳ com.atlassian.plugin.web.descriptors.ConditionElementParser

Class Overview

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.

Summary

Nested Classes
class ConditionElementParser.CompositeType  
interface ConditionElementParser.ConditionFactory Creates a condition. 
Public Constructors
ConditionElementParser(ConditionElementParser.ConditionFactory conditionFactory)
Public Methods
Condition makeCondition(Plugin plugin, Element element)
Condition makeConditions(Plugin plugin, Element element, int type)
Create a condition for when this web fragment should be displayed.
Condition makeConditions(Plugin plugin, List<Element> elements, int type)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConditionElementParser (ConditionElementParser.ConditionFactory conditionFactory)

Public Methods

public Condition makeCondition (Plugin plugin, Element element)

public Condition makeConditions (Plugin plugin, Element element, int type)

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

public Condition makeConditions (Plugin plugin, List<Element> elements, int type)