|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.metadata.model.MetadataBuildAction
public class MetadataBuildAction
Holds the meta data for a run.
Constructor Summary | |
---|---|
MetadataBuildAction()
Default constructor. |
|
MetadataBuildAction(hudson.model.Run run)
Deprecated. |
|
MetadataBuildAction(hudson.model.Run run,
List<MetadataValue> values)
Deprecated. |
Method Summary | |
---|---|
Collection<MetadataValue> |
addChild(MetadataValue value)
Adds the child to the list of children. |
Collection<MetadataValue> |
addChildren(Collection<MetadataValue> childValues)
Adds the children to this parent's list of children. |
hudson.security.ACL |
getACL()
Returns the ACL for the owner of the container.. |
MetadataValue |
getChild(String name)
Returns the child with the given name, or null if there is none. |
Collection<String> |
getChildNames()
The child names of this parent. |
Collection<MetadataValue> |
getChildren()
The children of this parent. |
String |
getDisplayName()
|
String |
getFullName()
The full name of the element. |
String |
getFullName(String separator)
The full name of the element, using the chosen separator string. |
String |
getFullNameFrom(MetadataParent base)
Gives the full name from the given parent. |
String |
getIconFileName()
|
hudson.model.Run |
getRun()
The run that this action is added to. |
String |
getUrlName()
|
List<MetadataValue> |
getValues()
The meta data in this action. |
int |
indexOf(String name)
The index of the child with the provided name. |
void |
onAttached(hudson.model.Run<?,?> r)
|
void |
onLoad(hudson.model.Run<?,?> r)
|
boolean |
requiresReplacement()
If this parent type requires to be replaced or not when a replacement command is issued. |
void |
save()
Saves the container to disc, usually achieved by calling save on whatever Saveable this container is in. |
MetadataValue |
setChild(int index,
MetadataValue value)
Sets the child on index with the provided value, replacing any object currently on that index. |
net.sf.json.JSON |
toJson()
Convert this object into a JSON object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public MetadataBuildAction(hudson.model.Run run, List<MetadataValue> values)
@Deprecated public MetadataBuildAction(hudson.model.Run run)
public MetadataBuildAction()
Method Detail |
---|
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public void onAttached(hudson.model.Run<?,?> r)
onAttached
in interface jenkins.model.RunAction2
public void onLoad(hudson.model.Run<?,?> r)
onLoad
in interface jenkins.model.RunAction2
public hudson.model.Run getRun()
public List<MetadataValue> getValues()
getChildren()
public MetadataValue getChild(String name)
MetadataParent
getChild
in interface MetadataParent<MetadataValue>
name
- the name to search for.
public int indexOf(String name)
MetadataParent
indexOf
in interface MetadataParent<MetadataValue>
name
- the name of the child to find.
public MetadataValue setChild(int index, MetadataValue value)
MetadataParent
index
with the provided value, replacing any object currently on that index.
setChild
in interface MetadataParent<MetadataValue>
index
- the index to set.value
- the child to set.
public Collection<MetadataValue> addChild(MetadataValue value)
MetadataParent
addChild
in interface MetadataParent<MetadataValue>
value
- the child to add.
public Collection<MetadataValue> addChildren(Collection<MetadataValue> childValues)
MetadataParent
addChildren
in interface MetadataParent<MetadataValue>
childValues
- the children to add.
public Collection<MetadataValue> getChildren()
MetadataParent
getChildren
in interface MetadataParent<MetadataValue>
public Collection<String> getChildNames()
MetadataParent
getChildNames
in interface MetadataParent<MetadataValue>
public String getFullName()
MetadataParent
getFullName
in interface MetadataParent<MetadataValue>
public String getFullName(String separator)
MetadataParent
getFullName
in interface MetadataParent<MetadataValue>
separator
- the separator string.
public String getFullNameFrom(MetadataParent base)
MetadataParent
getFullNameFrom
in interface MetadataParent<MetadataValue>
base
- the parent to base the tree structure from.
public net.sf.json.JSON toJson()
MetadataParent
toJson
in interface MetadataParent<MetadataValue>
public boolean requiresReplacement()
MetadataParent
requiresReplacement
in interface MetadataParent<MetadataValue>
MetadataValue.replacementOf(
com.sonyericsson.hudson.plugins.metadata.model.values.MetadataValue)
public void save() throws IOException
MetadataContainer
Saveable
this container is in.
save
in interface MetadataContainer<MetadataValue>
IOException
- if the persistence.public hudson.security.ACL getACL()
MetadataContainer
ACL
for the owner of the container..
getACL
in interface MetadataContainer<MetadataValue>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |