gpt4 book ai didi

java - 有没有像 Schematics (Python) for Java 这样的工具?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:11:43 26 4
gpt4 key购买 nike

是否有与这个整洁的 Python 库类似的工具:https://github.com/j2labs/schematics在 Java 中?

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.

最佳答案

我猜 JSR 303,bean 验证 将是最接近的等价物:

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.

关于java - 有没有像 Schematics (Python) for Java 这样的工具?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12758430/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com