public class LabelAtom extends Label implements Saveable
Label.ConverterImplModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem| Modifier and Type | Field and Description |
|---|---|
protected List<Action> |
transientActions |
loadStatistics, name, nodeProvisioner| Modifier and Type | Method and Description |
|---|---|
<V,P> V |
accept(LabelVisitor<V,P> visitor,
P param)
Accepts a visitor and call its respective "onXYZ" method based no the actual type of 'this'.
|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts the update to the node configuration.
|
void |
doSubmitDescription(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts the new description.
|
static String |
escape(String name) |
static LabelAtom |
findNearest(String name) |
static LabelAtom |
get(String l)
Obtains an atom by its name.
|
List<Action> |
getActions()
Gets actions contributed to this object.
|
List<LabelAtomPropertyDescriptor> |
getApplicablePropertyDescriptors()
Returns all the
LabelAtomPropertyDescriptors that can be potentially configured
on this label. |
String |
getDescription()
Returns a human readable text that explains this label.
|
String |
getExpression()
If the label contains 'unsafe' chars, escape them.
|
DescribableList<LabelAtomProperty,LabelAtomPropertyDescriptor> |
getProperties()
Properties associated with this label.
|
List<LabelAtomProperty> |
getPropertiesList() |
boolean |
isAtom()
Returns true iff this label is an atom.
|
Set<LabelAtom> |
listAtoms()
Lists up all the atoms contained in in this label.
|
void |
load() |
boolean |
matches(VariableResolver<Boolean> resolver)
Evaluates whether the label expression is true given the specified value assignment.
|
static boolean |
needsEscape(String name) |
LabelOperatorPrecedence |
precedence()
Precedence of the top most operator.
|
void |
save()
Persists the state of this object into XML.
|
void |
setDescription(String description) |
protected void |
updateTransientActions() |
and, compareTo, contains, doChildrenContextMenu, equals, getApi, getBusyExecutors, getClouds, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getTiedJobCount, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isEmpty, isOffline, isSelfLabel, matches, matches, not, or, paren, parse, parseExpression, toStringaddAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceActiongetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError@CopyOnWrite protected transient volatile List<Action> transientActions
public LabelAtom(String name)
public String getExpression()
getExpression in class Labelpublic boolean isAtom()
Labelpublic List<Action> getActions()
A new Action can be added by Actionable.addAction(hudson.model.Action).
If you are reading the list, rather than modifying it,
use Actionable.getAllActions() instead.
This method by default returns only persistent actions
(though some subclasses override it to return an extended unmodifiable list).
Note that this method returns a read-only view of Actions.
LabelAtomPropertys who want to add a project action
should do so by implementing LabelAtomProperty.getActions(LabelAtom).
getActions in class Actionableprotected void updateTransientActions()
public String getDescription()
LabelgetDescription in class Labelpublic void setDescription(String description) throws IOException
IOExceptionpublic DescribableList<LabelAtomProperty,LabelAtomPropertyDescriptor> getProperties()
@Exported public List<LabelAtomProperty> getPropertiesList()
public boolean matches(VariableResolver<Boolean> resolver)
Labelpublic <V,P> V accept(LabelVisitor<V,P> visitor, P param)
Labelpublic Set<LabelAtom> listAtoms()
Labelpublic LabelOperatorPrecedence precedence()
Labelprecedence in class Labelpublic void save()
throws IOException
Saveable
For making a bulk change efficiently, see BulkChange.
To support listeners monitoring changes to this object, call SaveableListener#fireOnChange
save in interface SaveableIOException - if the persistence failed.public void load()
public List<LabelAtomPropertyDescriptor> getApplicablePropertyDescriptors()
LabelAtomPropertyDescriptors that can be potentially configured
on this label.public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class)
public void doSubmitDescription(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletException@Nullable public static LabelAtom get(@CheckForNull String l)
Jenkins.getLabelAtom(java.lang.String)public static boolean needsEscape(String name)
Copyright © 2019. All rights reserved.