|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.model.Label
hudson.model.labels.LabelAtom
public class LabelAtom
Atomic single token label, like "foo" or "bar".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Label |
|---|
Label.ConverterImpl |
| Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
|---|
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.MenuItem |
| Field Summary | |
|---|---|
protected List<Action> |
transientActions
|
| Fields inherited from class hudson.model.Label |
|---|
loadStatistics, name, nodeProvisioner |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
LabelAtom(String name)
|
|
| Method Summary | ||
|---|---|---|
|
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. |
|
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 build. |
|
List<LabelAtomPropertyDescriptor> |
getApplicablePropertyDescriptors()
Returns all the LabelAtomPropertyDescriptors that can be potentially configured
on this label. |
|
String |
getExpression()
If the label contains 'unsafe' chars, escape them. |
|
DescribableList<LabelAtomProperty,LabelAtomPropertyDescriptor> |
getProperties()
Properties associated with this label. |
|
List<LabelAtomProperty> |
getPropertiesList()
|
|
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. |
|
protected void |
updateTransientActions()
|
|
| Methods inherited from class hudson.model.Label |
|---|
and, compareTo, contains, equals, getApi, getBusyExecutors, getClouds, getDescription, getDisplayName, getIdleExecutors, getName, getNodes, getSearchUrl, getTiedJobs, getTotalConfiguredExecutors, getTotalExecutors, getUrl, hashCode, iff, implies, isAssignable, isEmpty, isOffline, isSelfLabel, matches, matches, not, or, paren, parse, parseExpression, toString |
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, doContextMenu, getAction, getAction, getActions, getDynamic |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@CopyOnWrite protected transient volatile List<Action> transientActions
| Constructor Detail |
|---|
public LabelAtom(String name)
| Method Detail |
|---|
public String getExpression()
getExpression in class Labelpublic List<Action> getActions()
A new Action can be added by getActions().add(...).
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 DescribableList<LabelAtomProperty,LabelAtomPropertyDescriptor> getProperties()
@Exported public List<LabelAtomProperty> getPropertiesList()
public boolean matches(VariableResolver<Boolean> resolver)
Label
matches in class Label
public <V,P> V accept(LabelVisitor<V,P> visitor,
P param)
Label
accept in class Labelpublic Set<LabelAtom> listAtoms()
Label
listAtoms in class Labelpublic LabelOperatorPrecedence precedence()
Label
precedence in class Label
public 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
IOException
javax.servlet.ServletException
Descriptor.FormException
@Nullable
public static LabelAtom get(@CheckForNull
String l)
Jenkins.getLabelAtom(java.lang.String)public static LabelAtom findNearest(String name)
public static boolean needsEscape(String name)
public static String escape(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||