public class SingleObjectBundle extends Object implements ObjectBundle
Modifier and Type | Field and Description |
---|---|
private List<Object> |
contents
Storing the real contents.
|
private BundleMeta |
meta
Store the meta data.
|
Constructor and Description |
---|
SingleObjectBundle()
Constructor.
|
SingleObjectBundle(BundleMeta meta,
List<Object> contents)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(SimpleTypeInformation<?> meta,
Object data)
Append a single representation to the object.
|
Object |
data(int rnum)
Get the value of the ith component.
|
Object |
data(int onum,
int rnum)
Access a particular object and representation.
|
int |
dataLength()
Get the number of objects contained.
|
BundleMeta |
meta()
Access the meta data.
|
SimpleTypeInformation<?> |
meta(int i)
Access the meta data.
|
int |
metaLength()
Get the metadata length.
|
private BundleMeta meta
public SingleObjectBundle()
public SingleObjectBundle(BundleMeta meta, List<Object> contents)
meta
- Metadatacontents
- Object valuespublic BundleMeta meta()
ObjectBundle
meta
in interface ObjectBundle
public SimpleTypeInformation<?> meta(int i)
ObjectBundle
meta
in interface ObjectBundle
i
- componentpublic int metaLength()
ObjectBundle
metaLength
in interface ObjectBundle
public Object data(int rnum)
rnum
- representation numberpublic int dataLength()
ObjectBundle
dataLength
in interface ObjectBundle
public Object data(int onum, int rnum)
ObjectBundle
data
in interface ObjectBundle
onum
- Object numberrnum
- Representation numberpublic void append(SimpleTypeInformation<?> meta, Object data)
meta
- Meta for the representationdata
- Data to append