有没有类似Schematics(Python)的Java工具?

2024-05-23 22:03:51 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有类似于这个简洁的Python库的工具:Java中的https://github.com/j2labs/schematics?在

Schematics is an easy way to model data. It provides mechanisms for structuring data, initializing data, serializing data, formatting data and validating data against type definitions, like an email address.

...

Schematics' main goal is to provide similar functionality to a type system along with a way to generate the schematics we send to the Internet, or store in a database, or send to some Java process, or basically any use case with structured data.


Tags: or工具thetohttpsansenddata
1条回答
网友
1楼 · 发布于 2024-05-23 22:03:51

我想JSR 303,bean validation最接近:

Bean Validation defines a metadata model and API for JavaBean validation. The metadata source is annotations, with the ability to override and extend the meta-data through the use of XML validation descriptors. The Hibernate team provides with Hibernate Validator the reference implementation of Bean Validation and also created the Bean Validation TCK any implementation of JSR 303 needs to pass.

相关问题 更多 >