public class OtherOptionConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OptionFormat |
format
The format of the other option.
|
protected int |
maxBytes
The value of the other option.
|
protected int |
minBytes
The value of the other option.
|
protected int |
number
The number of the other option.
|
protected boolean |
singleValue
The multiplicity of the other option.
|
| Constructor and Description |
|---|
OtherOptionConfig()
Default constructor.
|
OtherOptionConfig(String alias,
int number)
Constructor
|
OtherOptionConfig(String alias,
int number,
OptionFormat format,
boolean singleValue,
int minBytes,
int maxBytes)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias() |
OptionFormat |
getFormat() |
int |
getMaxBytes() |
Integer |
getMinBytes() |
int |
getNumber() |
int |
hashCode() |
boolean |
isSingleValue() |
void |
setAlias(String alias) |
void |
setFormat(OptionFormat format) |
void |
setMaxBytes(int maxBytes) |
void |
setMinBytes(int minBytes) |
void |
setNumber(int number) |
void |
setSingleValue(boolean singleValue) |
@Parameter @Expression(value=NOT_SUPPORTED) @Summary(value="The number of the other option.") @Example(value="65001") protected int number
@Parameter @Optional(defaultValue="OPAQUE") @Expression(value=NOT_SUPPORTED) @Summary(value="The format of the other option.") @Example(value="INTEGER") protected OptionFormat format
@Parameter @Optional(defaultValue="true") @Expression(value=NOT_SUPPORTED) @Summary(value="The type of the other option.") protected boolean singleValue
@Parameter @Optional(defaultValue="0") @Expression(value=NOT_SUPPORTED) @Summary(value="The minimum number of bytes of the option.") @Example(value="1") protected int minBytes
@Parameter @Optional @Expression(value=NOT_SUPPORTED) @Summary(value="The maximum number of bytes of the option.") @Example(value="4") protected int maxBytes
public OtherOptionConfig()
public OtherOptionConfig(String alias, int number)
alias - number - public OtherOptionConfig(String alias, int number, OptionFormat format, boolean singleValue, int minBytes, int maxBytes)
alias - The option alias.number - The option number.format - The option format.singleValue - The option alias.minBytes - The minimum length in bytes, may be null.maxBytes - The maximum length in bytes, may be null.public String getAlias()
public void setAlias(String alias)
alias - The alias to set.public int getNumber()
public void setNumber(int number)
number - The number to set.public OptionFormat getFormat()
public void setFormat(OptionFormat format)
format - The option format to set.public boolean isSingleValue()
public void setSingleValue(boolean singleValue)
singleValue - The singleValue to set.public Integer getMinBytes()
public void setMinBytes(int minBytes)
minBytes - The minBytes to set.public int getMaxBytes()
public void setMaxBytes(int maxBytes)
maxBytes - The maxBytes to set.public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2019–2025 Teslanet.nl. All rights reserved.