View Javadoc

1   package com.atlassian.plugin.web.conditions;
2   
3   import com.atlassian.plugin.web.Condition;
4   
5   import java.util.Iterator;
6   import java.util.Map;
7   
8   public class AndCompositeCondition extends AbstractCompositeCondition
9   {
10      public boolean shouldDisplay(Map context)
11      {
12          for (Iterator it = conditions.iterator(); it.hasNext();)
13          {
14              Condition condition = (Condition) it.next();
15              if (!condition.shouldDisplay(context))
16                  return false;
17          }
18  
19          return true;
20      }
21  }