|
||||||||||
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.definitions.AbstractMetadataDefinition com.sonyericsson.hudson.plugins.metadata.model.definitions.DateMetadataDefinition
public class DateMetadataDefinition
Meta data with the value of a Date
.
Nested Class Summary | |
---|---|
static class |
DateMetadataDefinition.DateMetaDataDefinitionDescriptor
Descriptor for DateMetadataDefinition s. |
Nested classes/interfaces inherited from class com.sonyericsson.hudson.plugins.metadata.model.definitions.AbstractMetadataDefinition |
---|
AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor |
Constructor Summary | |
---|---|
DateMetadataDefinition(String name,
String description,
int defaultYear,
int defaultMonth,
int defaultDay,
TimeDetails details)
Standard Constructor. |
Method Summary | |
---|---|
AbstractMetadataValue |
createValue(Object o)
Creates an AbstractMetadataValue from this definition. |
int |
getDefaultDay()
Getter for the defaultDay. |
int |
getDefaultHour()
Getter for the default hour. |
int |
getDefaultMinute()
Getter for the default minute. |
int |
getDefaultMonth()
Getter for the defaultMonth. |
int |
getDefaultSecond()
Getter for the default second. |
Date |
getDefaultValue()
Returns default metadata values for this definition. |
int |
getDefaultYear()
Getter for the defaultYear. |
boolean |
isChecked()
Returns the checked value, used to decide if the time details should be visible. |
Methods inherited from class com.sonyericsson.hudson.plugins.metadata.model.definitions.AbstractMetadataDefinition |
---|
getAll, getDescription, getDescriptor, getFullName, getFullName, getFullNameFrom, getFullPath, getName, getParent, getType, getValue, isExposedToEnvironment, setExposeToEnvironment, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@DataBoundConstructor public DateMetadataDefinition(String name, String description, int defaultYear, int defaultMonth, int defaultDay, TimeDetails details)
name
- the namedefaultYear
- the default year.defaultMonth
- the default month of the year.defaultDay
- the default day of the month.description
- the description.details
- the optional time details, hour/minute/second.Method Detail |
---|
public int getDefaultYear()
public int getDefaultMonth()
public int getDefaultDay()
public int getDefaultHour()
public int getDefaultMinute()
public int getDefaultSecond()
public boolean isChecked()
public Date getDefaultValue()
AbstractMetadataDefinition
getDefaultValue
in class AbstractMetadataDefinition
public AbstractMetadataValue createValue(Object o)
AbstractMetadataDefinition
createValue
in interface MetadataDefinition
createValue
in class AbstractMetadataDefinition
o
- the value to use as input for creating the AbstractMetadataValue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |