|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue com.sonyericsson.hudson.plugins.metadata.model.values.TreeNodeMetadataValue
public class TreeNodeMetadataValue
Meta data containing other meta data values. Used to create tree structures of data.
Nested Class Summary | |
---|---|
static class |
TreeNodeMetadataValue.TreeNodeMetaDataValueDescriptor
Descriptor for TreeNodeMetadataValue s. |
Nested classes/interfaces inherited from class com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue |
---|
AbstractMetadataValue.AbstractMetaDataValueDescriptor |
Field Summary |
---|
Fields inherited from class com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue |
---|
name |
Constructor Summary | |
---|---|
TreeNodeMetadataValue(String name)
Standard Constructor. |
|
TreeNodeMetadataValue(String name,
List<MetadataValue> children)
Standard Constructor. |
|
TreeNodeMetadataValue(String name,
String description)
Standard Constructor. |
|
TreeNodeMetadataValue(String name,
String description,
List<MetadataValue> children)
Standard Constructor. |
|
TreeNodeMetadataValue(String name,
String description,
List<MetadataValue> children,
boolean exposedToEnvironment)
Standard Constructor. |
Method Summary | |
---|---|
Collection<MetadataValue> |
addChild(MetadataValue value)
Adds the child to the list of children. |
Collection<MetadataValue> |
addChildren(Collection<MetadataValue> values)
Adds the children to this parent's list of children. |
void |
addEnvironmentVariables(hudson.EnvVars variables,
boolean exposeAll)
Adds the environment variables for this Metadata to the variables map. |
TreeNodeMetadataValue |
clone()
Clones this MetadataValue. |
int |
compareTo(Object t)
|
boolean |
equals(Object obj)
|
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. |
hudson.model.Descriptor<AbstractMetadataValue> |
getDescriptor()
|
List<MetadataValue> |
getValue()
Get the value. |
int |
hashCode()
|
int |
indexOf(String name)
The index of the child with the provided name. |
void |
replacementOf(MetadataValue old)
A signal sent to this object that it is the replacement of another object. |
boolean |
requiresReplacement()
If this parent type requires to be replaced or not when a replacement command is issued. |
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.JSONObject |
toJson()
Convert this object into a JSON object. |
Methods inherited from class com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue |
---|
getDescription, getEnvironmentName, getFullName, getFullName, getFullNameFrom, getFullPath, getName, getParent, isExposedToEnvironment, isGenerated, setDescription, setExposeToEnvironment, setGenerated, setName, setParent, toAbstractJson |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sonyericsson.hudson.plugins.metadata.model.MetadataParent |
---|
getFullName, getFullName, getFullNameFrom |
Constructor Detail |
---|
@DataBoundConstructor public TreeNodeMetadataValue(String name, String description, List<MetadataValue> children, boolean exposedToEnvironment)
name
- the name.description
- the descriptionchildren
- its children.exposedToEnvironment
- if this value should be exposed to the build as an
environment variable.public TreeNodeMetadataValue(String name, String description, List<MetadataValue> children)
name
- the namedescription
- the description.children
- its children.public TreeNodeMetadataValue(String name, String description)
name
- the namedescription
- the description.public TreeNodeMetadataValue(String name, List<MetadataValue> children)
name
- the name.children
- its children.public TreeNodeMetadataValue(String name)
name
- the name.Method Detail |
---|
public List<MetadataValue> getValue()
AbstractMetadataValue
getValue
in interface Metadata<MetadataValue>
getValue
in class AbstractMetadataValue
public MetadataValue getChild(String name)
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> values)
MetadataParent
addChildren
in interface MetadataParent<MetadataValue>
values
- 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 void replacementOf(MetadataValue old)
MetadataValue
replacementOf
in interface MetadataValue
replacementOf
in class AbstractMetadataValue
old
- the object that it is the replacement of.public hudson.model.Descriptor<AbstractMetadataValue> getDescriptor()
getDescriptor
in interface hudson.model.Describable<AbstractMetadataValue>
public net.sf.json.JSONObject toJson()
MetadataParent
toJson
in interface MetadataParent<MetadataValue>
toJson
in interface MetadataValue
public boolean requiresReplacement()
MetadataParent
requiresReplacement
in interface MetadataParent<MetadataValue>
MetadataValue.replacementOf(
com.sonyericsson.hudson.plugins.metadata.model.values.MetadataValue)
public void addEnvironmentVariables(hudson.EnvVars variables, boolean exposeAll)
MetadataValue
addEnvironmentVariables
in interface MetadataValue
addEnvironmentVariables
in class AbstractMetadataValue
variables
- the map of current environment variables.exposeAll
- whether all Metadata should be added to the map. Inherited from the parent.public TreeNodeMetadataValue clone() throws CloneNotSupportedException
MetadataValue
clone
in interface MetadataValue
clone
in class AbstractMetadataValue
CloneNotSupportedException
- if it cannot be cloned.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object t)
compareTo
in interface Comparable<Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |