Package liquibase
Class LabelExpression
java.lang.Object
liquibase.LabelExpression
Wrapper for list of labels.
Labels are tags that you can add to changesets to control which changeset will be executed in any migration run. Labels control whether a changeset is executed depending on runtime settings. Any string can be used for the label name, and it is case-insensitive.
- See Also:
-
- labels in documentation
-
Constructor Summary
ConstructorDescriptionLabelExpression
(String labels) LabelExpression
(String... labels) LabelExpression
(Collection<String> labels) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isEmpty()
boolean
Returns true if the passed runtime labels match this label expressionstatic boolean
matchesAll
(Collection<Labels> changesetLabels, LabelExpression labelExpression) Return true if all the LabelExpression objects match the runtimetoString()
-
Constructor Details
-
LabelExpression
public LabelExpression() -
LabelExpression
-
LabelExpression
-
LabelExpression
-
-
Method Details
-
add
-
getLabels
-
toString
-
matches
Returns true if the passed runtime labels match this label expression -
matchesAll
public static boolean matchesAll(Collection<Labels> changesetLabels, LabelExpression labelExpression) Return true if all the LabelExpression objects match the runtime- Parameters:
changesetLabels
- Expressions to match againstlabelExpression
- Runtime labels- Returns:
- boolean True if match
-
isEmpty
public boolean isEmpty() -
getOriginalString
-