public final class LisComponent extends Object
Constructor and Description |
---|
LisComponent(int type,
int representationCode,
int size,
int category,
String mnemonic,
String unit,
List<Object> values)
Create a LIS component.
|
LisComponent(int type,
int representationCode,
int size,
int category,
String mnemonic,
String unit,
Object value)
Convenience constructor for creating a component with exactly
one value.
|
LisComponent(int type,
int category,
String mnemonic,
String unit,
Object value)
Convenience constructor for creating a component with exactly
one non-null object.
|
LisComponent(int type,
int category,
String mnemonic,
String unit,
String value)
Convenience constructor for creating a component with exactly
one string-type object.
|
Modifier and Type | Method and Description |
---|---|
int |
getCategory()
Return component category.
|
int |
getLength()
Return component length in bytes.
|
String |
getMnemonic()
Return component mnemonic.
|
int |
getRepresentationCode()
Return representation code of the values of this component.
|
int |
getSize()
Return component value size in bytes.
|
int |
getType()
Return component type.
|
String |
getUnit()
Return unit of measure for the values of this component.
|
Object |
getValue()
Convenience method to get the first value if the client
knows that there are at most one.
|
List<Object> |
getValues()
Return the value(s) of this component.
|
void |
setMnemonic(String mnemonic)
Set component mnemonic.
|
void |
setValue(Object value)
Set value of this component.
|
String |
toString() |
public LisComponent(int type, int representationCode, int size, int category, String mnemonic, String unit, List<Object> values)
type
- Component type.representationCode
- Representation code.size
- Component size. <0,>.category
- Category.mnemonic
- Feature mnemonic. Null if N/A.unit
- Feature unit. Null if unitless or N/A.values
- Component values. Non-null.IllegalArgumentException
- If representationCode is invalid, size is <= 0
or values is null.public LisComponent(int type, int representationCode, int size, int category, String mnemonic, String unit, Object value)
type
- Component type.representationCode
- Representation code.size
- Component size.category
- Category.mnemonic
- Feature mnemonic. Null if N/A.unit
- Feature unit. Null if unitless or N/A.value
- Component value.IllegalArgumentException
- If representationCode is invalid, size is <= 0.public LisComponent(int type, int category, String mnemonic, String unit, Object value)
type
- Component type.category
- Component category.mnemonic
- Feature mnemonic. Null if N/A.unit
- Feature unit. Null if unitless or N/A.value
- Component values.public LisComponent(int type, int category, String mnemonic, String unit, String value)
type
- Component type.category
- Component category.mnemonic
- Feature mnemonic. Null if N/A.unit
- Feature unit. Null if unitless or N/A.value
- Component value.public int getType()
public int getRepresentationCode()
public int getLength()
public int getSize()
public int getCategory()
public String getMnemonic()
public void setMnemonic(String mnemonic)
mnemonic
- Mnemonic to set. Null if N/A.public String getUnit()
public List<Object> getValues()
public Object getValue()
public void setValue(Object value)
value
- Value to set. Null for absent.Copyright © 2024 Petroware AS - https://petroware.no