@SuppressWarnings("deprecation") // TODO this was mistakenly made to be the ToolDescriptor class name, rather than .id as you would expect; now baked into serial form public ToolDescriptor getType() { if (descriptor == null) { descriptor = (ToolDescriptor) Descriptor.find(type); } return descriptor; }
/** * Finds the descriptor that has the matching fully-qualified class name. * * @param fqcn * Fully qualified name of the descriptor, not the describable. * @deprecated {@link Descriptor#getId} is supposed to be used for new code, not the descriptor class name. */ public D find(String fqcn) { return Descriptor.find(this,fqcn); }
/** * Finds the descriptor that has the matching fully-qualified class name. * @deprecated Underspecified what the parameter is. {@link Descriptor#getId}? A {@link Describable} class name? */ @CheckForNull public Descriptor<T> find(String fqcn) { return Descriptor.find(this,fqcn); } }
/** * @deprecated Underspecified what the parameter is. {@link Descriptor#getId}? A {@link Describable} class name? */ public static TopLevelItemDescriptor getDescriptor(String fqcn) { return Descriptor.find(all(), fqcn); }
/** * @deprecated choose between {@link #findById} or {@link #findByDescribableClassName} */ public static @CheckForNull Descriptor find(String className) { return find(ExtensionList.lookup(Descriptor.class),className); }
/** * Finds the descriptor that has the matching fully-qualified class name. * * @param fqcn * Fully qualified name of the descriptor, not the describable. * @deprecated {@link Descriptor#getId} is supposed to be used for new code, not the descriptor class name. */ public D find(String fqcn) { return Descriptor.find(this,fqcn); }
/** * Finds the descriptor that has the matching fully-qualified class name. * * @param fqcn Fully qualified name of the descriptor, not the describable. */ public D find(String fqcn) { return Descriptor.find(this, fqcn); }
/** * Finds the descriptor that has the matching fully-qualified class name. * * @param fqcn * Fully qualified name of the descriptor, not the describable. */ public D find(String fqcn) { return Descriptor.find(this,fqcn); }
/** * Finds the descriptor that has the matching fully-qualified class name. */ public Descriptor<T> find(String fqcn) { return Descriptor.find(this,fqcn); } }
@SuppressWarnings("deprecation") // TODO this was mistakenly made to be the ToolDescriptor class name, rather than .id as you would expect; now baked into serial form public ToolDescriptor getType() { if (descriptor == null) { descriptor = (ToolDescriptor) Descriptor.find(type); } return descriptor; }
/** * Finds the descriptor that has the matching fully-qualified class name. * * @param fqcn * Fully qualified name of the descriptor, not the describable. */ public D find(String fqcn) { return Descriptor.find(this,fqcn); }
/** * Finds the descriptor that has the matching fully-qualified class name. */ public Descriptor<T> find(String fqcn) { return Descriptor.find(this,fqcn); } }
public ToolDescriptor getType() { if (descriptor == null) { descriptor = (ToolDescriptor) Descriptor.find(type); } return descriptor; }
/** * Finds the descriptor that has the matching fully-qualified class name. */ public Descriptor<T> find(String fqcn) { return Descriptor.find(this, fqcn); } }
/** * Finds the descriptor that has the matching fully-qualified class name. */ public Descriptor<T> find(String fqcn) { return Descriptor.find(this,fqcn); } }
public ToolDescriptor getType() { if (descriptor == null) descriptor = (ToolDescriptor) Descriptor.find(type); return descriptor; }
/** * Finds the descriptor that has the matching fully-qualified class name. * @deprecated Underspecified what the parameter is. {@link Descriptor#getId}? A {@link Describable} class name? */ @CheckForNull public Descriptor<T> find(String fqcn) { return Descriptor.find(this,fqcn); } }
/** * @deprecated Underspecified what the parameter is. {@link Descriptor#getId}? A {@link Describable} class name? */ public static TopLevelItemDescriptor getDescriptor(String fqcn) { return Descriptor.find(all(), fqcn); }
/** * @deprecated choose between {@link #findById} or {@link #findByDescribableClassName} */ public static @CheckForNull Descriptor find(String className) { return find(ExtensionList.lookup(Descriptor.class),className); }
public static <T extends Describable<T>> List<T> newInstancesFromHeteroList(StaplerRequest req, Object formData, Collection<? extends Descriptor<T>> descriptors) throws FormException { List<T> items = new ArrayList<T>(); if (formData != null) { for (Object o : JSONArray.fromObject(formData)) { JSONObject jo = (JSONObject) o; String kind = jo.getString("kind"); items.add(find(descriptors, kind).newInstance(req, jo)); } } return items; }