{"id":21428363,"url":"https://github.com/ushelp/easycommons-objectutils","last_synced_at":"2025-08-30T22:11:40.160Z","repository":{"id":69647754,"uuid":"69239249","full_name":"ushelp/EasyCommons-ObjectUtils","owner":"ushelp","description":"Obejct operations component - EasyCommons ","archived":false,"fork":false,"pushed_at":"2019-08-13T06:42:19.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T22:04:42.488Z","etag":null,"topics":["character","filter","hibernate","java-bean","java-objects","json","map","object","object-filter"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ushelp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["http://www.easyproject.cn/donation"]}},"created_at":"2016-09-26T10:28:21.000Z","updated_at":"2024-03-01T10:26:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"eea0f735-7afe-40cb-a7b1-a379db5fad88","html_url":"https://github.com/ushelp/EasyCommons-ObjectUtils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ushelp/EasyCommons-ObjectUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ushelp%2FEasyCommons-ObjectUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ushelp%2FEasyCommons-ObjectUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ushelp%2FEasyCommons-ObjectUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ushelp%2FEasyCommons-ObjectUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ushelp","download_url":"https://codeload.github.com/ushelp/EasyCommons-ObjectUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ushelp%2FEasyCommons-ObjectUtils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272913794,"owners_count":25014333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["character","filter","hibernate","java-bean","java-objects","json","map","object","object-filter"],"created_at":"2024-11-22T22:12:54.644Z","updated_at":"2025-08-30T22:11:40.154Z","avatar_url":"https://github.com/ushelp.png","language":"Java","readme":"# EasyObjectUtils 项目简介\n\n---------------\n\n\nEasyObjectUtils 是 EasyCommons 项目组下的对象操作组件。\n\n\u003e [EasyCommons](https://github.com/ushelp/EasyCommons \"EasyCommons\") 一个针对Java开发领域提供通用开发组件的项目。旨在为Java项目开发领域并不完善的一些方面，提供一些组件级的解决方案。\n\u003e 该项目有多个子项目，会不断收集相关组件，也欢迎有新的组件加入。\n\n\n\nEasyObjectUtils is EasyCommons project group obejct operations component. \n\n\u003e  [EasyCommons](https://github.com/ushelp/EasyCommons \"EasyCommons\") is a development component to provide a common field for Java development projects. Java is designed to develop programs in the field of some aspects of the project is not perfect, some component-level solutions.\n\u003e  The project has multiple sub-projects, will continue to collect related components, also welcomed the new components added.\n\n\n\n## 中文\n\n- **EasyObjectUtils 核心**\n\n 1. **EasyObjectExtract**：对象抽取。 从对象中使用字段表达式(`FieldExpression`)抽取指定属性以 **key-value** 存入Map集合。 \n \n **适合场景**：JSON输出时，从对象中抽取指定输出属性和值。 \n \n 2. **EasyObjectFilter**：JavaBean对象属性过滤。将对象中的特殊字符(\u003c,\u003e,...)全部过滤掉，转为转义符；或者自定义字符转换映射。 \n \n **适合场景**：将JavaBean对象属性中的字符串包含的特殊字符进行过滤转换为字符实体；或将对象字符串属性中包含的字符全部替换为指定字符。例如，在Struts2中文件上传时提交的数据封装到对象后，对对象中可能包含的用户提交的的特殊字符串的进行转义。\n \n 3. **EasyObjectSetNull**：对象属性置空。使用字段表达式(`FieldExpression`)将对象中指定属性设置为null。 \n\n **适合场景**：将Hibernate加载的对象中有些延迟无法加载的属性设置为空 ，防止在序列化属性时出现no session异常。\n\n- **EasyObject FieldExpression（字段表达式）语言**\n 可以在进行对象操作时进行属性定位。\n ```\n  指定属性： property \n  指定属性的属性：property.property\n  指定集合中每一个对象： {collection}\n  指定数组中每一个对象： [array] \n  指定集合中每一个对象的属性：{collection}.property \n  指定数组中每一个对象的属性：[array].property \n\n  别名定义(仅适用于EasyObjectExtract)：FieldExpression#Alias\n ```\n\n[EasyObjectUtils API - 中文](doc/API-zh.md \"EasyObjectUtils API\")\n\n[官方主页](http://www.easyproject.cn/easycommons/zh-cn/index.jsp '官方主页')\n\n[留言评论](http://www.easyproject.cn/easycommons/zh-cn/index.jsp#donation '留言评论')\n\n如果您有更好意见，建议或想法，请联系我。\n\n\n## English\n\n- **EasyObjectUtils core:**\n\n 1. **EasyObjectExtract**: extraction of the object. Using field expression from the object (`FieldExpression`) to extract the specified property deposited **key-value** Map collection.\u003cbr/\u003e\n  **Scene**: JSON output, specify the output attributes and values extracted from the object.\n \n 2. **EasyObjectFilter**: JavaBean Object property filtering. The object of special characters (\u003c,\u003e, ...) to filter out, into the escape character; or custom character transformation maps.\u003cbr/\u003e\n **Scene** : the special character JavaBean Object property contains a string to filter into character entity; or a character string property objects included replacing all the specified character. For example, the data in the file upload Struts2 package submitted to the object, a special string to the user object may contain submitted escaped.\n \n 3. **EasyObjectSetNull**: Object Properties empty. Using field expressions  Language(`FieldExpression`) specified property set to null object.\u003cbr/\u003e\n **Scene**: Hibernate object loaded some delay attribute set can not be loaded is empty, to prevent abnormal when no session serialized property.\n\n- **EasyObject FieldExpression language**\n EasyObjectUtils the tools used to **EasyObject FieldExpression (field expression) language** for property positioning when you operate object.\n \n Syntax:\n  ```\n  Specified attributes: property\n  Specify the attribute that: property.property\n  Each object in the specified collection: {collection}\n  Each object in the specified array: [array] Attribute specifies for each object in the collection: {collection} .property\n  Attribute specifies for each object in the array: [array] .property\n  \n  Alias definitions (only for EasyObjectExtract): FieldExpression#Alias\n  ```\n\n[EasyObjectUtils API - English](doc/API-en.md \"EasyObjectUtils API\")\n\n[The official home page](http://www.easyproject.cn/easycommons/en/index.jsp 'The official home page')\n\n[Comments](http://www.easyproject.cn/easycommons/en/index.jsp#donation 'Comments')\n\nIf you have more comments, suggestions or ideas, please contact me.\n\n\n## Maven\n```XML\n\u003c!-- EasyObjectUtils --\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecn.easyproject\u003c/groupId\u003e\n\t\u003cartifactId\u003eeasycommons-object\u003c/artifactId\u003e\n\t\u003cversion\u003e1.7.4-RELEASE\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## End\n\n[官方主页](http://www.easyproject.cn/easycommons/zh-cn/index.jsp '官方主页')\n\n[留言评论](http://www.easyproject.cn/easycommons/zh-cn/index.jsp#donation '留言评论')\n\n[The official home page](http://www.easyproject.cn/easycommons/en/index.jsp The official home page')\n\n[Comments](http://www.easyproject.cn/easycommons/en/index.jsp#donation 'Comments')\n\n如果您有更好意见，建议或想法，请联系我。\n\nIf you have more comments, suggestions or ideas, please contact me.\n\n\n\nEmail：\u003cinthinkcolor@gmail.com\u003e\n\n[http://www.easyproject.cn](http://www.easyproject.cn \"EasyProject Home\")\n\n\n\n**支付宝钱包扫一扫捐助：**\n\n我们相信，每个人的点滴贡献，都将是推动产生更多、更好免费开源产品的一大步。\n\n**感谢慷慨捐助，以支持服务器运行和鼓励更多社区成员。**\n\n\u003cimg alt=\"支付宝钱包扫一扫捐助\" src=\"http://www.easyproject.cn/images/s.png\"  title=\"支付宝钱包扫一扫捐助\"  height=\"256\" width=\"256\"\u003e\u003c/img\u003e\n\n\n\nWe believe that the contribution of each bit by bit, will be driven to produce more and better free and open source products a big step.\n\n**Thank you donation to support the server running and encourage more community members.**\n\n[![PayPal](http://www.easyproject.cn/images/paypaldonation5.jpg)](https://www.paypal.me/easyproject/10 \"Make payments with PayPal - it's fast, free and secure!\")\n","funding_links":["http://www.easyproject.cn/donation","https://www.paypal.me/easyproject/10"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fushelp%2Feasycommons-objectutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fushelp%2Feasycommons-objectutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fushelp%2Feasycommons-objectutils/lists"}