com.sonyericsson.hudson.plugins.metadata.model.values
Class StringMetadataValue

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue
      extended by com.sonyericsson.hudson.plugins.metadata.model.values.StringMetadataValue
All Implemented Interfaces:
Metadata<MetadataValue>, MetadataValue, hudson.model.Describable<AbstractMetadataValue>, Serializable, Cloneable, Comparable<Object>

public class StringMetadataValue
extends AbstractMetadataValue

A Meta Data value of the type String.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>
See Also:
Serialized Form

Nested Class Summary
static class StringMetadataValue.StringMetaDataValueDescriptor
          The Descriptor.
 
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
StringMetadataValue(String name, String value)
          Standard Constructor.
StringMetadataValue(String name, String description, String value)
          Standard Constructor.
StringMetadataValue(String name, String description, String value, boolean exposedToEnvironment)
          Standard Constructor.
 
Method Summary
 int compareTo(Object userValue)
           
 boolean equals(Object obj)
           
 hudson.model.Descriptor<AbstractMetadataValue> getDescriptor()
           
 String getValue()
          Get the value.
 int hashCode()
           
 net.sf.json.JSONObject toJson()
          Convert this object into a JSON object.
 
Methods inherited from class com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue
addEnvironmentVariables, clone, getDescription, getEnvironmentName, getFullName, getFullName, getFullNameFrom, getFullPath, getName, getParent, isExposedToEnvironment, isGenerated, replacementOf, setDescription, setExposeToEnvironment, setGenerated, setName, setParent, toAbstractJson
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMetadataValue

@DataBoundConstructor
public StringMetadataValue(String name,
                                                String description,
                                                String value,
                                                boolean exposedToEnvironment)
Standard Constructor.

Parameters:
name - the name.
description - the description.
value - the value.
exposedToEnvironment - if this value should be exposed to the build as an environment variable.

StringMetadataValue

public StringMetadataValue(String name,
                           String description,
                           String value)
Standard Constructor.

Parameters:
name - the name.
description - the description.
value - the value.

StringMetadataValue

public StringMetadataValue(String name,
                           String value)
Standard Constructor.

Parameters:
name - the name.
value - the value.
Method Detail

getValue

public String getValue()
Description copied from class: AbstractMetadataValue
Get the value.

Specified by:
getValue in interface Metadata<MetadataValue>
Overrides:
getValue in class AbstractMetadataValue
Returns:
the value.

getDescriptor

public hudson.model.Descriptor<AbstractMetadataValue> getDescriptor()

toJson

public net.sf.json.JSONObject toJson()
Description copied from interface: MetadataValue
Convert this object into a JSON object.

Returns:
the JSON version.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Object userValue)


Copyright © 2004-2013. All Rights Reserved.