org.endurox.TypedUbfMarshaller Class Reference

List of all members.

Static Package Functions

static void marshal (Object o, int occ, TypedUbf ub)
static void unmarshal (Object o, int occ, TypedUbf ub)

Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

 All Classes Namespaces Files Functions Variables

Generated on 29 Jan 2022 for endurox-java by  doxygen 1.6.1