|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.metadata.model.definitions.AbstractMetadataDefinition
com.sonyericsson.hudson.plugins.metadata.model.definitions.NumberMetadataDefinition
public class NumberMetadataDefinition
A metadata definition of the type Number..
Nested Class Summary | |
---|---|
static class |
NumberMetadataDefinition.NumberMetaDataDefinitionDescriptor
The Descriptor. |
Nested classes/interfaces inherited from class com.sonyericsson.hudson.plugins.metadata.model.definitions.AbstractMetadataDefinition |
---|
AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor |
Constructor Summary | |
---|---|
NumberMetadataDefinition(String name,
long defaultValue)
Standard Constructor. |
|
NumberMetadataDefinition(String name,
String description,
long defaultValue)
Standard Constructor. |
Method Summary | |
---|---|
NumberMetadataValue |
createValue(Object o)
Creates an AbstractMetadataValue from this definition. |
Long |
getDefaultValue()
Returns default metadata values for this definition. |
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 NumberMetadataDefinition(String name, String description, long defaultValue)
name
- the name.description
- the description.defaultValue
- the default value for this definitionpublic NumberMetadataDefinition(String name, long defaultValue)
name
- the name.defaultValue
- the default value.Method Detail |
---|
public NumberMetadataValue createValue(Object o)
AbstractMetadataDefinition
createValue
in interface MetadataDefinition
createValue
in class AbstractMetadataDefinition
o
- the value to use as input for creating the AbstractMetadataValue.
public Long getDefaultValue()
getDefaultValue
in class AbstractMetadataDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |