com.atlassian.plugin.web.baseconditions
Class AbstractConditionElementParser<T extends BaseCondition>
java.lang.Object
com.atlassian.plugin.web.baseconditions.AbstractConditionElementParser<T>
- Direct Known Subclasses:
- ConditionElementParser
public abstract class AbstractConditionElementParser<T extends BaseCondition>
- extends Object
This abstract class contains the logic for constructing
BaseCondition objects from a module descriptor's
XML element. It provides the logic to implement composite conditions (AND and OR) and inverted conditions.
- Since:
- v3.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConditionElementParser
public AbstractConditionElementParser()
makeConditions
public T makeConditions(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element,
int type)
throws com.atlassian.plugin.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:
com.atlassian.plugin.PluginParseException
makeConditions
public T makeConditions(com.atlassian.plugin.Plugin plugin,
List<org.dom4j.Element> elements,
int type)
throws com.atlassian.plugin.PluginParseException
- Throws:
com.atlassian.plugin.PluginParseException
makeCondition
public T makeCondition(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
- Throws:
com.atlassian.plugin.PluginParseException
makeConditionImplementation
protected abstract T makeConditionImplementation(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
- Throws:
com.atlassian.plugin.PluginParseException
invert
protected abstract T invert(T condition)
createAndCompositeCondition
protected abstract CompositeCondition<T> createAndCompositeCondition()
createOrCompositeCondition
protected abstract CompositeCondition<T> createOrCompositeCondition()
Copyright © 2014 Atlassian. All rights reserved.