| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue
com.sonyericsson.hudson.plugins.metadata.model.values.DateMetadataValue
public class DateMetadataValue
Meta data with the value of a Date.
| Nested Class Summary | |
|---|---|
| static class | DateMetadataValue.DateMetaDataValueDescriptorDescriptor for DateMetadataValues. | 
| 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 | |
|---|---|
| DateMetadataValue(String name,
                  Date value)Standard Constructor. | |
| DateMetadataValue(String name,
                  String description,
                  Date value)Standard Constructor. | |
| DateMetadataValue(String name,
                  String description,
                  Date value,
                  boolean exposedToEnvironment)Standard Constructor. | |
| DateMetadataValue(String name,
                  String description,
                  int year,
                  int month,
                  int day,
                  TimeDetails details,
                  boolean exposedToEnvironment)Standard Constructor. | |
| Method Summary | |
|---|---|
|  DateMetadataValue | clone()Clones this MetadataValue. | 
|  int | compareTo(Object userValue) | 
|  boolean | equals(Object obj) | 
|  int | getDay()Getter for the defaultDay. | 
|  hudson.model.Descriptor<AbstractMetadataValue> | getDescriptor() | 
|  int | getHour()Getter for the default hour. | 
|  int | getMinute()Getter for the default minute. | 
|  int | getMonth()Getter for the defaultMonth. | 
|  int | getSecond()Getter for the default second. | 
|  Date | getValue()Get the value. | 
|  int | getYear()Getter for the defaultYear. | 
|  int | hashCode() | 
|  boolean | isChecked()Returns the checked value, used to decide if the time details should be visible. | 
|  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, 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 | 
|---|
@DataBoundConstructor
public DateMetadataValue(String name,
                                              String description,
                                              int year,
                                              int month,
                                              int day,
                                              TimeDetails details,
                                              boolean exposedToEnvironment)
name - the nameyear - the default year.month - the default month of the year.day - the default day of the month.description - the description.details - the optional time details, hour/minute/second.exposedToEnvironment - if this value should be exposed to the build as an
                             environment variable.
public DateMetadataValue(String name,
                         String description,
                         Date value,
                         boolean exposedToEnvironment)
name - the name.description - the description.value - the value.exposedToEnvironment - if this value should be exposed to the build as an
                             environment variable.
public DateMetadataValue(String name,
                         String description,
                         Date value)
name - the name.description - the description.value - the value.
public DateMetadataValue(String name,
                         Date value)
name - the name.value - the value.| Method Detail | 
|---|
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public boolean isChecked()
public Date getValue()
AbstractMetadataValue
getValue in interface Metadata<MetadataValue>getValue in class AbstractMetadataValuepublic hudson.model.Descriptor<AbstractMetadataValue> getDescriptor()
public net.sf.json.JSONObject toJson()
MetadataValue
public DateMetadataValue clone()
                        throws CloneNotSupportedException
MetadataValue
clone in interface MetadataValueclone in class AbstractMetadataValueCloneNotSupportedException - if it cannot be cloned.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Object userValue)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||