com.atlassian.plugin.web.descriptors
Class ConditionElementParser
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionElementParser
public ConditionElementParser(ConditionElementParser.ConditionFactory conditionFactory)
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.