Package liquibase
Class ContextExpression
- java.lang.Object
-
- liquibase.ContextExpression
-
public class ContextExpression extends Object
Encapsulates logic for evaluating if a set of runtime contexts matches a context expression string.
-
-
Constructor Summary
Constructors Constructor Description ContextExpression()
ContextExpression(String contexts)
ContextExpression(String... contexts)
ContextExpression(Collection<String> contexts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(String context)
Set<String>
getContexts()
String
getOriginalString()
boolean
isEmpty()
boolean
matches(Contexts runtimeContexts)
Returns true if the passed runtime contexts match this context expressionstatic boolean
matchesAll(Collection<ContextExpression> expressions, Contexts contexts)
String
toString()
-
-
-
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)
-
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)
-
getOriginalString
public String getOriginalString()
-
-