liquibase
Class ContextExpression

java.lang.Object
  extended by liquibase.ContextExpression

public class ContextExpression
extends Object

Encapsulates logic for evaluating if a set of runtime contexts matches a context expression string.


Constructor Summary
ContextExpression()
           
ContextExpression(Collection<String> contexts)
           
ContextExpression(String... contexts)
           
ContextExpression(String contexts)
           
 
Method Summary
 boolean add(String context)
           
 Set<String> getContexts()
           
 boolean isEmpty()
           
 boolean matches(Contexts runtimeContexts)
          Returns true if the passed runtime contexts match this context expression
static boolean matchesAll(Collection<ContextExpression> expressions, Contexts contexts)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextExpression

public ContextExpression()

ContextExpression

public ContextExpression(String... contexts)

ContextExpression

public ContextExpression(String contexts)

ContextExpression

public ContextExpression(Collection<String> contexts)
Method Detail

add

public boolean add(String context)

getContexts

public Set<String> getContexts()

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(Contexts runtimeContexts)
Returns true if the passed runtime contexts match this context expression


isEmpty

public boolean isEmpty()

matchesAll

public static boolean matchesAll(Collection<ContextExpression> expressions,
                                 Contexts contexts)


Copyright © 2016 Liquibase.org. All rights reserved.