Interface ControlDecoder<C extends Control>
- Type Parameters:
C- The type of control decoded by this control decoder.
public interface ControlDecoder<C extends Control>
A factory interface for decoding a control as a control of specific type.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeControl(Control control, DecodeOptions options) Decodes the provided control as aControlof typeC.getOID()Returns the numeric OID associated with this control decoder.
-
Method Details
-
decodeControl
Decodes the provided control as aControlof typeC.- Parameters:
control- The control to be decoded.options- The set of decode options which should be used when decoding the control.- Returns:
- The decoded control.
- Throws:
DecodeException- If the control contained the wrong OID, it did not have a value, or if its value could not be decoded.
-
getOID
Returns the numeric OID associated with this control decoder.- Returns:
- The numeric OID associated with this control decoder.
-