public abstract class LabelExpression extends Label
Modifier and Type | Class and Description |
---|---|
static class |
LabelExpression.And |
static class |
LabelExpression.Binary |
static class |
LabelExpression.Iff |
static class |
LabelExpression.Implies |
static class |
LabelExpression.Not |
static class |
LabelExpression.Or |
static class |
LabelExpression.Paren
No-op but useful for preserving the parenthesis in the user input.
|
Label.ConverterImpl
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
loadStatistics, name, nodeProvisioner
Modifier | Constructor and Description |
---|---|
protected |
LabelExpression(String name) |
Modifier and Type | Method and Description |
---|---|
static AutoCompletionCandidates |
autoComplete(String label)
Generates auto-completion candidates for a (partial) label.
|
String |
getExpression()
Returns a label expression that represents this label.
|
static FormValidation |
validate(String expression)
Validates a label expression.
|
static FormValidation |
validate(String expression,
Item item)
Validates a label expression.
|
accept, and, compareTo, contains, doChildrenContextMenu, equals, get, getApi, getBusyExecutors, getClouds, getDescription, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getSortedNodes, getTiedJobCount, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isAtom, isEmpty, isOffline, isSelfLabel, listAtoms, matches, matches, matches, not, or, paren, parse, parseExpression, precedence, toString
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
protected LabelExpression(String name)
public String getExpression()
Label
getExpression
in class Label
@NonNull public static AutoCompletionCandidates autoComplete(@Nullable String label)
label
- The (partial) label for which auto-completion is being requested.@NonNull public static FormValidation validate(@Nullable String expression)
expression
- The expression to validate.@NonNull public static FormValidation validate(@Nullable String expression, @CheckForNull Item item)
expression
- The label expression to validate.item
- The context item (like a job or a folder), if applicable; used for potential additional
restrictions via LabelValidator
instances.Copyright © 2004–2021. All rights reserved.