public class DSRecord extends Object
| Constructor and Description |
|---|
DSRecord()
Constructs an empty record with no fields defined and command set to none.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all fields on this record.
|
DSCommand |
getCommand() |
Object |
getField(Object name)
Returns the value of the field
|
int |
getRowIndex() |
String |
getRowLabel() |
void |
setCommand(DSCommand command)
Sets the command on this record.
|
void |
setField(String name,
Object value)
Sets the field to a value.
|
void |
setRowIndex(int rowIndex) |
void |
setRowLabel(String rowLabel) |
public DSRecord()
public void setField(String name, Object value)
name - the field namevalue - Arbitrary object to represent the value. The value cannot be null.public Object getField(Object name)
name - the field name; if not a string, it is converted to stringIllegalArgumentException - if the field by this name was not set, or name is nullpublic void clear()
public DSCommand getCommand()
public void setCommand(DSCommand command)
command - the command to setpublic int getRowIndex()
public void setRowIndex(int rowIndex)
rowIndex - the 0-based row index to setpublic String getRowLabel()
public void setRowLabel(String rowLabel)
rowLabel - the rowName to setCopyright © 2025 European Spallation Source. All rights reserved.