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 betrim
ed before persistingvalue
- non-blank string for the value, will betrim
ed before persisting- Throws:
Descriptor.FormException
- if either key/value arenull
or 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 betrim
ed before persistingvalue
- possibly blank string for the value, will betrim
ed before persistingallowBlankValue
-true
itvalue
may be blank (but not null)- Throws:
Descriptor.FormException
- if either key/value arenull
or are not valid values
-
-
Method Details
-
getKey
-
getValue
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<T extends AbstractKeyValueDescribable<T>>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<T extends AbstractKeyValueDescribable<T>>
-