|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.slaves.NodeProperty<hudson.model.Node> com.sonyericsson.hudson.plugins.metadata.model.MetadataNodeProperty
@ExportedBean public class MetadataNodeProperty
Stores metadata about Nodes.
Nested Class Summary | |
---|---|
static class |
MetadataNodeProperty.MetadataNodePropertyDescriptor
Descriptor for MetadataNodeProperty . |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class hudson.slaves.NodeProperty |
---|
node |
Constructor Summary | |
---|---|
MetadataNodeProperty()
Default constructor. |
|
MetadataNodeProperty(List<MetadataValue> values)
Standard Constructor. |
Method Summary | |
---|---|
Collection<MetadataValue> |
addChild(MetadataValue value)
Adds the child to the list of children. |
Collection<MetadataValue> |
addChildren(Collection<MetadataValue> children)
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 |
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. |
List<MetadataValue> |
getValues()
The list of metadata values. |
int |
indexOf(String name)
The index of the child with the provided name. |
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. |
boolean |
shouldDisplaySummary(org.kohsuke.stapler.StaplerRequest request)
Jenkins likes to display both the master's properties summary.jelly and the node's summary.jelly on the computer page. |
net.sf.json.JSON |
toJson()
Convert this object into a JSON object. |
Methods inherited from class hudson.slaves.NodeProperty |
---|
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, setNode, setUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@DataBoundConstructor public MetadataNodeProperty(List<MetadataValue> values)
values
- the metadata for a Node.public MetadataNodeProperty()
Method Detail |
---|
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> children)
MetadataParent
addChildren
in interface MetadataParent<MetadataValue>
children
- the children to add.
@Exported 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 boolean shouldDisplaySummary(org.kohsuke.stapler.StaplerRequest request)
request
- the request.
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 |