Package org.jenkinsci.plugins.oic
Class AbstractKeyValueDescribable<T extends AbstractKeyValueDescribable<T>>
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.oic.AbstractKeyValueDescribable<T>
- All Implemented Interfaces:
Describable<T>
- Direct Known Subclasses:
AbstractQueryParameter
public abstract class AbstractKeyValueDescribable<T extends AbstractKeyValueDescribable<T>>
extends AbstractDescribableImpl<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionAbstractKeyValueDescribable(String key, String value) Create a new instance with the provided key/value combination.AbstractKeyValueDescribable(String key, String value, boolean allowBlankValue) Create a new instance with the provided key/value combination. -
Method Summary
-
Constructor Details
-
AbstractKeyValueDescribable
Create a new instance with the provided key/value combination.- Parameters:
key- non-blank String to use as the key, will betrimed before persistingvalue- non-blank string for the value, will betrimed before persisting- Throws:
Descriptor.FormException- if either key/value arenullor are not valid values
-
AbstractKeyValueDescribable
public AbstractKeyValueDescribable(String key, String value, boolean allowBlankValue) throws Descriptor.FormException Create a new instance with the provided key/value combination.- Parameters:
key- non-blank String to use as the key, will betrimed before persistingvalue- possibly blank string for the value, will betrimed before persistingallowBlankValue-trueitvaluemay be blank (but not null)- Throws:
Descriptor.FormException- if either key/value arenullor are not valid values
-
-
Method Details
-
getKey
-
getValue
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<T extends AbstractKeyValueDescribable<T>>- Overrides:
getDescriptorin classAbstractDescribableImpl<T extends AbstractKeyValueDescribable<T>>
-