com.sonyericsson.hudson.plugins.metadata.model.values
Class DateMetadataValue.DateMetaDataValueDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<AbstractMetadataValue>
      extended by com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue.AbstractMetaDataValueDescriptor
          extended by com.sonyericsson.hudson.plugins.metadata.model.values.DateMetadataValue.DateMetaDataValueDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
DateMetadataValue

@Extension
public static class DateMetadataValue.DateMetaDataValueDescriptor
extends AbstractMetadataValue.AbstractMetaDataValueDescriptor

Descriptor for DateMetadataValues.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
DateMetadataValue.DateMetaDataValueDescriptor()
           
 
Method Summary
 MetadataValue fromJson(net.sf.json.JSONObject json, MetadataContainer<MetadataValue> container)
          Converts a JSON object into a MetadataValue of this descriptors describable.
 String getDisplayName()
           
 String getJsonType()
          Gives the type to put into the JSON conversations.
 
Methods inherited from class com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue.AbstractMetaDataValueDescriptor
appliesTo, findForJsonType
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateMetadataValue.DateMetaDataValueDescriptor

public DateMetadataValue.DateMetaDataValueDescriptor()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<AbstractMetadataValue>

getJsonType

public String getJsonType()
Description copied from class: AbstractMetadataValue.AbstractMetaDataValueDescriptor
Gives the type to put into the JSON conversations.

Specified by:
getJsonType in class AbstractMetadataValue.AbstractMetaDataValueDescriptor
Returns:
the JSON type field.

fromJson

public MetadataValue fromJson(net.sf.json.JSONObject json,
                              MetadataContainer<MetadataValue> container)
                       throws JsonUtils.ParseException
Description copied from class: AbstractMetadataValue.AbstractMetaDataValueDescriptor
Converts a JSON object into a MetadataValue of this descriptors describable.

Specified by:
fromJson in class AbstractMetadataValue.AbstractMetaDataValueDescriptor
Parameters:
json - the json data to use.
container - The container that the created object is intended to go into. Can be used to check for validity of attributes.
Returns:
the converted value.
Throws:
JsonUtils.ParseException - if something is for example missing.


Copyright © 2004-2013. All Rights Reserved.