|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.model.Descriptor<AbstractMetadataValue> com.sonyericsson.hudson.plugins.metadata.model.values.AbstractMetadataValue.AbstractMetaDataValueDescriptor
public abstract static class AbstractMetadataValue.AbstractMetaDataValueDescriptor
The descriptor for the AbstractMetadataValue.
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 | |
---|---|
AbstractMetadataValue.AbstractMetaDataValueDescriptor()
|
Method Summary | |
---|---|
boolean |
appliesTo(hudson.model.Descriptor containerDescriptor)
Tells if values of this descriptor can be added to the specified container type or not. |
static AbstractMetadataValue.AbstractMetaDataValueDescriptor |
findForJsonType(String type)
Finds the descriptor for the given metadata-type. |
abstract MetadataValue |
fromJson(net.sf.json.JSONObject json,
MetadataContainer<MetadataValue> container)
Converts a JSON object into a MetadataValue of this descriptors describable. |
abstract String |
getJsonType()
Gives the type to put into the JSON conversations. |
Methods inherited from class hudson.model.Descriptor |
---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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 |
---|
public AbstractMetadataValue.AbstractMetaDataValueDescriptor()
Method Detail |
---|
public boolean appliesTo(hudson.model.Descriptor containerDescriptor)
containerDescriptor
- the descriptor for the container that the values of this type can be added to. Can
be null.
public static AbstractMetadataValue.AbstractMetaDataValueDescriptor findForJsonType(String type)
type
- the type to find.
public abstract String getJsonType()
public abstract MetadataValue fromJson(net.sf.json.JSONObject json, MetadataContainer<MetadataValue> container) throws JsonUtils.ParseException
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.
JsonUtils.ParseException
- if something is for example missing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |