Package com.zb.mom.ww.mxgateway.client
Class MxStatuses
java.lang.Object
com.zb.mom.ww.mxgateway.client.MxStatuses
Helpers for inspecting
MxaccessGateway.MxStatusProxy values returned by the gateway.
An MxStatusProxy mirrors the MXAccess COM MXSTATUS_PROXY
struct. The success flag uses the MXAccess convention where any non-zero
value indicates success.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordIdiomatic-Java accessor view over a rawMxaccessGateway.MxStatusProxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether the supplied status proxy reports success.static MxStatuses.MxStatusViewview(MxaccessGateway.MxStatusProxy status) Wraps a rawMxaccessGateway.MxStatusProxyin an accessor view that exposes its fields with idiomatic Java getters.
-
Method Details
-
succeeded
Returns whether the supplied status proxy reports success.- Parameters:
status- the status proxy, may benull- Returns:
trueifstatusisnullor its success flag is non-zero,falseotherwise
-
view
Wraps a rawMxaccessGateway.MxStatusProxyin an accessor view that exposes its fields with idiomatic Java getters.- Parameters:
status- the raw status proxy- Returns:
- a view backed by
status
-