Package hudson.model.labels
Class LabelAtom
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Label
hudson.model.labels.LabelAtom
- All Implemented Interfaces:
- ModelObject,- Saveable,- SearchableModelObject,- SearchItem,- Comparable<Label>,- ModelObjectWithChildren,- ModelObjectWithContextMenu
Atomic single token label, like "foo" or "bar".
- Since:
- 1.372
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.LabelLabel.ConverterImpl, Label.LabelComputerSource, Label.LabelComputerSourceImplNested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenuModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
- 
Field SummaryFieldsFields inherited from class hudson.model.LabelloadStatistics, name, nodeProvisioner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<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'.voiddoConfigSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Accepts the update to the node configuration.voiddoSubmitDescription(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Accepts the new description.static Stringstatic LabelAtomfindNearest(String name) static LabelAtomObtains an atom by its name.Gets actions contributed to this object.Returns all theLabelAtomPropertyDescriptors that can be potentially configured on this label.Returns a human readable text that explains this label.If the label contains 'unsafe' chars, escape them.Properties associated with this label.booleanisAtom()Returns true iff this label is an atom.Lists all the atoms contained in this label.voidload()booleanmatches(VariableResolver<Boolean> resolver) Evaluates whether the label expression is true given the specified value assignment.static booleanneedsEscape(String name) Precedence of the top most operator.voidsave()Persists the state of this object into XML.voidsetDescription(String description) protected voidMethods inherited from class hudson.model.Labeland, compareTo, contains, doChildrenContextMenu, equals, getApi, getBusyExecutors, getClouds, getComputers, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getTiedJobCount, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isEmpty, isOffline, isSelfLabel, matches, matches, not, or, paren, parse, parseExpression, toStringMethods inherited from class hudson.model.ActionableaddAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObjectgetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jenkins.model.ModelObjectWithChildrendoChildrenContextMenuMethods inherited from interface hudson.search.SearchItemgetSearchGroup, getSearchIcon
- 
Field Details- 
transientActions
 
- 
- 
Constructor Details- 
LabelAtom
 
- 
- 
Method Details- 
getExpressionIf the label contains 'unsafe' chars, escape them.- Specified by:
- getExpressionin class- Label
 
- 
isAtompublic boolean isAtom()Description copied from class:LabelReturns true iff this label is an atom.
- 
getActionsGets actions contributed to this object.A new Actioncan be added byActionable.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 implementingLabelAtomProperty.getActions(LabelAtom).- Overrides:
- getActionsin class- Actionable
- Returns:
- a possibly empty list
 
- 
updateTransientActionsprotected void updateTransientActions()
- 
getDescriptionDescription copied from class:LabelReturns a human readable text that explains this label.- Overrides:
- getDescriptionin class- Label
- Since:
- 1.580
 
- 
setDescription- Throws:
- IOException
 
- 
getPropertiesProperties associated with this label.
- 
getPropertiesList
- 
matchesDescription copied from class:LabelEvaluates whether the label expression is true given the specified value assignment. IOW, returns true if the assignment provided by the resolver matches this label expression.
- 
acceptDescription copied from class:LabelAccepts a visitor and call its respective "onXYZ" method based no the actual type of 'this'.
- 
listAtomsDescription copied from class:LabelLists all the atoms contained in this label.
- 
precedenceDescription copied from class:LabelPrecedence of the top most operator.- Specified by:
- precedencein class- Label
 
- 
saveDescription copied from interface:SaveablePersists the state of this object into XML.For making a bulk change efficiently, see BulkChange.To support listeners monitoring changes to this object, call SaveableListener.fireOnChange(hudson.model.Saveable, hudson.XmlFile)- Specified by:
- savein interface- Saveable
- Throws:
- IOException- if the persistence failed.
 
- 
loadpublic void load()
- 
getApplicablePropertyDescriptorsReturns all theLabelAtomPropertyDescriptors that can be potentially configured on this label.
- 
doConfigSubmit@POST public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException Accepts the update to the node configuration.- Throws:
- IOException
- jakarta.servlet.ServletException
- Descriptor.FormException
 
- 
doSubmitDescription@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public void doSubmitDescription(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Accepts the new description.- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
getObtains an atom by its name.- See Also:
 
- 
findNearest
- 
needsEscape
- 
escape
 
-