Static Package Functions | |
static void | marshal (Object o, int occ, TypedUbf ub) |
static void | unmarshal (Object o, int occ, TypedUbf ub) |
static void org.endurox.TypedUbfMarshaller.marshal | ( | Object | o, | |
int | occ, | |||
TypedUbf | ub | |||
) | [static, package] |
Copy Object data to UBF. Loop over the object meta data in set any ubf fields if found.
o | object to take data from | |
occ | array occurrence to load into buffer, or -1 to load all the data is loaded from 0 occ in UBF anyway | |
ub | UBF buffer to load data to. It is assumed that there is enough space there. |
For arrays we assume that all elements are filled. if we get null for boxed type, then empty value will be set in UBF
static void org.endurox.TypedUbfMarshaller.unmarshal | ( | Object | o, | |
int | occ, | |||
TypedUbf | ub | |||
) | [static, package] |
Copy UBF to object. In case of requesting occurrence but missing in UBF, will perform tests according to min fields only.
o | object to process | |
occ | -1 all occurrences, >=0 specified occurrence |
We start array unmarshal always from element 0 even if specific occurrence was given.