com.sonyericsson.hudson.plugins.metadata.model
Class MetadataNodeProperty.MetadataNodePropertyDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<P>
      extended by hudson.tools.PropertyDescriptor<hudson.slaves.NodeProperty<?>,hudson.model.Node>
          extended by hudson.slaves.NodePropertyDescriptor
              extended by com.sonyericsson.hudson.plugins.metadata.model.MetadataNodeProperty.MetadataNodePropertyDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
MetadataNodeProperty

@Extension
public static class MetadataNodeProperty.MetadataNodePropertyDescriptor
extends hudson.slaves.NodePropertyDescriptor

Descriptor for MetadataNodeProperty.


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
MetadataNodeProperty.MetadataNodePropertyDescriptor()
           
 
Method Summary
 String getDisplayName()
           
 List<AbstractMetadataValue.AbstractMetaDataValueDescriptor> getValueDescriptors(org.kohsuke.stapler.StaplerRequest request)
          All registered meta data descriptors that applies to jobs.
static MetadataNodeProperty instanceFor(hudson.model.Node node)
          Gives the MetadataNodeProperty for the given Node.
 MetadataNodeProperty newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.tools.PropertyDescriptor
for_, for_, isApplicable
 
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, 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

MetadataNodeProperty.MetadataNodePropertyDescriptor

public MetadataNodeProperty.MetadataNodePropertyDescriptor()
Method Detail

getDisplayName

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

getValueDescriptors

public List<AbstractMetadataValue.AbstractMetaDataValueDescriptor> getValueDescriptors(org.kohsuke.stapler.StaplerRequest request)
All registered meta data descriptors that applies to jobs. To be used by a hetero-list.

Parameters:
request - the current http request.
Returns:
a list.

instanceFor

public static MetadataNodeProperty instanceFor(hudson.model.Node node)
                                        throws IOException
Gives the MetadataNodeProperty for the given Node. If no metadata is available on the node the property will be created and added to the node.

Parameters:
node - the node.
Returns:
the property created or found.
Throws:
IOException - if an error occurs when adding the property to the node.

newInstance

public MetadataNodeProperty newInstance(org.kohsuke.stapler.StaplerRequest req,
                                        net.sf.json.JSONObject formData)
                                 throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.slaves.NodeProperty<?>>
Throws:
hudson.model.Descriptor.FormException


Copyright © 2004-2013. All Rights Reserved.