E - The container typepublic abstract class AbstractReadInteger<E extends Asn1Container> extends GrammarAction<E>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
The logger
|
private int |
maxValue
the acceptable maximum value for the expected value to be parsed
|
private int |
minValue
the acceptable minimum value for the expected value to be parsed
|
name| Constructor and Description |
|---|
AbstractReadInteger(String name)
Instantiates a new AbstractReadInteger action.
|
AbstractReadInteger(String name,
int minValue,
int maxValue)
Creates a new instance of AbstractReadInteger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(E container)
The action to be executed.
|
protected abstract void |
setIntegerValue(int value,
E container)
set the integer value to the appropriate field of ASN.1 object present in the container
|
toStringprivate static final org.slf4j.Logger LOG
private int minValue
private int maxValue
public AbstractReadInteger(String name)
name - the action's namepublic AbstractReadInteger(String name, int minValue, int maxValue)
name - the action's nameminValue - the acceptable minimum value for the expected value to be readmaxValue - the acceptable maximum value for the value to be readprotected abstract void setIntegerValue(int value,
E container)
value - the integer valuecontainer - the ASN.1 object's containerpublic final void action(E container) throws org.apache.directory.api.asn1.DecoderException
container - The container which stores the current dataorg.apache.directory.api.asn1.DecoderException - Thrown if something went wrong.Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.