Package io.deeplumen.ucp.typed
Class UcpTypedViews
java.lang.Object
io.deeplumen.ucp.typed.UcpTypedViews
Optional typed helpers around generated UCP models.
These helpers do not modify or replace generated types. They only offer convenience views for fields that are intentionally left open-ended by the schema.
Example:
List<CapabilityRef> caps = UcpTypedViews.checkoutCapabilities(checkout.getUcp());
for (CapabilityRef cap : caps) {
System.out.println(cap.name() + "@" + cap.version());
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CapabilityRef>capabilityRefs(List<Object> raw) static List<CapabilityRef>checkoutCapabilities(UCPCheckoutResponse ucpMeta) toRawCapabilities(List<CapabilityRef> refs)
-
Method Details
-
capabilityRefs
-
toRawCapabilities
-
checkoutCapabilities
-