Class DescribableHelper
java.lang.Object
org.jenkinsci.plugins.workflow.structs.DescribableHelper
Deprecated.
Utility for converting between 
Describables (and some other objects) and map-like representations.
 Ultimately should live in Jenkins core (or Stapler).- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.static final classDeprecated.static final classDeprecated.static final classDeprecated.static final classDeprecated.A parameter (or array element) which could take any of the indicated concrete object types.static final classDeprecated.static classDeprecated.A type of a parameter to a class.static final classDeprecated.Definition of how a particular class may be configured. - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tinstantiate(Class<? extends T> clazz, Map<String, ?> arguments) Deprecated.Creates an instance of a class viaDataBoundConstructorandDataBoundSetter.static DescribableHelper.SchemaDeprecated.Loads a definition of the structure of a class: what kind of data you might get back fromuninstantiate(java.lang.Object)on an instance, or might want to pass toinstantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>).Deprecated.Computes arguments suitable to pass toinstantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>)to reconstruct this object. 
- 
Field Details
- 
CLAZZ
Deprecated.- See Also:
 
 
 - 
 - 
Method Details
- 
instantiate
Deprecated.Creates an instance of a class viaDataBoundConstructorandDataBoundSetter.The arguments may be primitives (as wrappers) or
Strings if that is their declared type.Characters,Enums, andURLs may be represented byStrings. Other object types may be passed in “raw” as well, but JSON-like structures are encouraged instead. Specifically aListmay be used to represent any list- or array-valued argument. AMapwithStringkeys may be used to represent any class which is itself data-bound. In that case the special keyCLAZZis used to specify theClass.getName(); or it may be omitted if the argument is declared to take a concrete type; orClass.getSimpleName()may be used in case the argument type isDescribableand only one subtype is registered (as aDescriptor) with that simple name.- Throws:
 Exception
 - 
uninstantiate
Deprecated.Computes arguments suitable to pass toinstantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>)to reconstruct this object.- Parameters:
 o- a data-bound object- Returns:
 - constructor and/or setter parameters
 - Throws:
 UnsupportedOperationException- if the class does not follow the expected structure
 - 
schemaFor
Deprecated.Loads a definition of the structure of a class: what kind of data you might get back fromuninstantiate(java.lang.Object)on an instance, or might want to pass toinstantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>). 
 - 
 
DescribableModel